3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo{ private $that; function __construct(){ $this->that = $this; } function __destruct(){ echo "destruct\n"; } } $x = new Foo(); unset($x); gc_collect_cycles(); echo "wat";

Here you find the average performance (time & memory) of each version. A grayed out version indicates it didn't complete successfully (based on exit-code).

VersionSystem time (s)User time (s)Memory (MiB)
8.5.30.0100.00720.23
8.5.20.0080.00920.26
8.5.10.0090.00820.12
8.5.00.0110.01319.87
8.4.180.0150.00819.64
8.4.170.0120.01123.90
8.4.160.0140.00723.90
8.4.150.0060.00716.90
8.4.140.0120.00917.74
8.4.130.0120.00917.77
8.4.120.0120.00920.54
8.4.110.0080.01222.36
8.4.100.0090.01117.71
8.4.90.0050.00517.79
8.4.80.0090.00117.82
8.4.70.0110.00717.97
8.4.60.0150.00518.83
8.4.50.0110.00820.43
8.4.40.0070.00819.24
8.4.30.0130.00717.59
8.4.20.0110.00017.63
8.4.10.0100.01019.29
8.3.300.0100.01020.79
8.3.290.0140.00620.69
8.3.280.0090.01118.06
8.3.270.0110.00816.54
8.3.260.0100.00916.41
8.3.250.0110.00718.76
8.3.240.0120.00816.51
8.3.230.0150.00516.41
8.3.220.0090.01017.15
8.3.210.0080.00716.45
8.3.200.0040.00716.74
8.3.190.0030.00517.23
8.3.180.0130.00616.53
8.3.170.0130.00716.49
8.3.160.0120.00616.50
8.3.150.0070.01117.15
8.3.140.0070.01116.56
8.3.130.0040.00418.54
8.3.120.0110.00519.02
8.3.110.0090.00020.94
8.3.100.0140.00724.06
8.3.90.0000.00826.77
8.3.80.0060.00317.97
8.3.70.0110.00818.18
8.3.60.0070.01116.75
8.3.50.0150.00321.92
8.3.40.0070.00718.81
8.3.30.0040.01218.47
8.3.20.0080.00019.21
8.3.10.0000.00821.90
8.3.00.0000.00819.38
8.2.300.0110.01118.02
8.2.290.0130.00620.27
8.2.280.0110.00620.08
8.2.270.0030.00616.79
8.2.260.0060.00619.02
8.2.250.0040.00418.29
8.2.240.0050.00318.84
8.2.230.0040.00422.58
8.2.220.0080.00337.54
8.2.210.0050.00326.77
8.2.200.0030.00618.16
8.2.190.0120.00916.63
8.2.180.0110.01118.66
8.2.170.0070.00722.96
8.2.160.0030.01319.46
8.2.150.0040.00424.18
8.2.140.0030.00624.66
8.2.130.0070.00018.09
8.2.120.0050.00226.35
8.2.110.0030.00619.31
8.2.100.0040.00819.30
8.2.90.0000.01117.75
8.2.80.0040.00417.97
8.2.70.0060.00318.03
8.2.60.0040.00418.03
8.2.50.0080.00018.10
8.2.40.0040.00420.55
8.2.30.0060.00319.19
8.2.20.0070.00017.96
8.2.10.0040.00417.94
8.2.00.0040.00417.54
8.1.340.0130.00721.68
8.1.330.0110.00916.58
8.1.320.0110.00816.25
8.1.310.0030.00516.76
8.1.300.0030.00616.13
8.1.290.0090.00030.84
8.1.280.0120.00325.92
8.1.270.0050.00220.38
8.1.260.0040.00426.35
8.1.250.0050.00328.09
8.1.240.0090.00317.25
8.1.230.0110.00017.71
8.1.220.0000.00817.74
8.1.210.0050.00318.77
8.1.200.0030.00617.13
8.1.190.0030.00619.01
8.1.180.0030.00618.10
8.1.170.0070.00020.63
8.1.160.0000.00818.86
8.1.150.0030.00320.22
8.1.140.0000.00719.52
8.1.130.0000.00717.38
8.1.120.0000.00817.34
8.1.110.0040.00417.36
8.1.100.0040.00417.41
8.1.90.0080.00017.44
8.1.80.0000.00717.45
8.1.70.0000.00717.37
8.1.60.0000.00817.63
8.1.50.0000.00817.48
8.1.40.0000.00717.45
8.1.30.0030.00517.65
8.1.20.0030.00517.70
8.1.10.0000.00817.62
8.1.00.0040.00417.52
8.0.300.0060.00318.77
8.0.290.0090.00016.75
8.0.280.0070.00018.49
8.0.270.0000.00816.77
8.0.260.0050.00316.79
8.0.250.0000.00716.91
8.0.240.0000.00616.90
8.0.230.0040.00416.90
8.0.220.0040.00416.89
8.0.210.0000.00716.73
8.0.200.0060.00516.82
8.0.190.0040.00416.79
8.0.180.0050.00316.84
8.0.170.0040.00416.89
8.0.160.0070.00016.89
8.0.150.0040.00416.73
8.0.140.0070.00016.84
8.0.130.0000.00713.20
8.0.120.0040.00416.71
8.0.110.0000.00716.89
8.0.100.0040.00416.79
8.0.90.0000.00716.87
8.0.80.0060.00916.81
8.0.70.0000.00716.95
8.0.60.0000.00716.83
8.0.50.0000.00716.71
8.0.30.0100.00916.95
8.0.20.0060.01217.40
8.0.10.0040.00416.89
8.0.00.0080.01016.66
7.4.330.0000.00615.55
7.4.320.0000.00716.38
7.4.300.0000.00716.65
7.4.290.0000.00716.51
7.4.280.0040.00416.52
7.4.270.0030.00316.50
7.4.260.0000.00716.57
7.4.250.0050.00216.45
7.4.240.0000.00716.46
7.4.230.0030.00316.44
7.4.220.0110.00916.63
7.4.210.0120.00716.50
7.4.200.0000.00916.41
7.4.150.0080.00817.40
7.4.140.0120.00617.86
7.4.130.0070.01016.54
7.4.120.0120.00816.43
7.4.110.0090.00816.59
7.4.100.0100.00716.59
7.4.90.0120.00616.48
7.4.80.0130.00719.39
7.4.70.0030.01316.59
7.4.60.0080.01216.64
7.4.50.0110.00316.52
7.4.40.0090.00916.63
7.4.30.0000.01516.34
7.4.00.0070.01014.89
7.3.330.0000.00613.32
7.3.320.0000.00613.14
7.3.310.0050.00316.13
7.3.300.0050.00516.14
7.3.290.0000.00716.35
7.3.280.0070.01016.32
7.3.270.0170.00017.40
7.3.260.0110.00916.41
7.3.250.0090.01116.40
7.3.240.0060.01116.43
7.3.230.0100.00716.35
7.3.210.0130.00716.19
7.3.200.0100.00719.39
7.3.190.0060.01316.27
7.3.180.0170.00316.59
7.3.170.0100.01116.49
7.3.160.0130.00416.29
7.2.330.0140.01016.71
7.2.320.0150.00716.88
7.2.310.0060.01016.59
7.2.300.0200.00316.49
7.2.290.0140.00316.54
7.2.60.0070.00717.02
7.2.50.0090.00316.48
7.1.200.0040.01115.70
7.1.70.0000.01317.27
7.1.60.0110.00717.27
7.1.50.0070.00416.91
7.1.40.0060.00616.44
7.1.30.0090.00316.55
7.1.20.0040.00816.52
7.1.10.0070.00716.54
7.1.00.0110.00216.76
7.0.200.0030.00716.90
7.0.190.0090.00016.80
7.0.180.0030.00616.43
7.0.170.0030.00616.06
7.0.160.0110.00016.12
7.0.150.0140.00216.23
7.0.140.0090.00316.24
7.0.130.0140.00616.47
7.0.120.0090.00916.71
7.0.110.0080.00816.22
7.0.100.0080.00416.44
7.0.90.0050.01016.45
7.0.80.0090.00416.27
7.0.70.0090.01216.27
7.0.60.0160.00316.09
7.0.50.0080.01216.44
7.0.40.0050.01014.89
7.0.30.0030.01214.89
7.0.20.0040.00814.89
7.0.10.0080.00814.89
7.0.00.0040.01114.89
5.6.300.0150.03820.88
5.6.290.0040.04820.66
5.6.280.0000.05221.03
5.6.270.0140.04521.02
5.6.260.0040.05620.93
5.6.250.0030.04420.93
5.6.240.0060.04520.94
5.6.230.0070.04721.04
5.6.220.0120.04021.02
5.6.210.0160.05121.06
5.6.200.0100.05020.83
5.6.190.0100.04520.82
5.6.180.0060.05520.85
5.6.170.0000.05120.97
5.6.160.0040.04321.05
5.6.150.0000.04621.04
5.6.140.0090.04220.69
5.6.130.0000.05920.89
5.6.120.0070.06320.79
5.6.110.0090.04120.75
5.6.100.0120.03920.82
5.6.90.0070.08620.71
5.6.80.0100.03620.41
5.6.70.0070.08320.31
5.6.60.0090.04120.30
5.6.50.0030.04520.10
5.6.40.0030.04620.17
5.6.30.0070.03820.18
5.6.20.0100.03620.31
5.6.10.0000.04320.23
5.6.00.0070.06220.13

preferences:
48.08 ms | 1572 KiB | 5 Q