3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { public function foo() { echo __FUNCTION__; } } class B extends A { public function getClosure() { return function() { parent::foo(); }; } } class C { public function __construct(B $b) { $b->getClosure()(); } } new C(new B);

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.3.70.0070.00716.34
8.3.60.0170.01016.50
8.3.50.0150.00018.01
8.3.40.0140.00718.64
8.3.30.0060.00918.79
8.3.20.0090.00018.65
8.3.10.0040.00421.59
8.3.00.0040.00423.48
8.2.180.0040.01818.31
8.2.170.0120.00322.96
8.2.160.0120.00622.11
8.2.150.0050.00324.18
8.2.140.0000.00824.66
8.2.130.0080.00021.09
8.2.120.0040.00426.35
8.2.110.0060.00320.56
8.2.100.0090.00317.65
8.2.90.0030.00517.72
8.2.80.0000.00917.97
8.2.70.0030.00517.93
8.2.60.0040.00417.91
8.2.50.0000.00818.10
8.2.40.0060.00320.93
8.2.30.0070.00020.65
8.2.20.0070.00018.05
8.2.10.0030.00617.98
8.2.00.0000.00817.94
8.1.280.0090.00625.92
8.1.270.0080.00020.25
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0030.00623.89
8.1.230.0070.00424.02
8.1.220.0050.00317.74
8.1.210.0050.00318.77
8.1.200.0030.00617.09
8.1.190.0060.00319.01
8.1.180.0040.00418.10
8.1.170.0000.00818.44
8.1.160.0000.00718.74
8.1.150.0040.00418.74
8.1.140.0000.00720.57
8.1.130.0030.00317.43
8.1.120.0070.00017.29
8.1.110.0080.00017.38
8.1.100.0060.00617.30
8.1.90.0000.00717.32
8.1.80.0040.00417.38
8.1.70.0040.00417.41
8.1.60.0030.00617.41
8.1.50.0030.00517.35
8.1.40.0000.00817.42
8.1.30.0040.00417.56
8.1.20.0040.00417.61
8.1.10.0040.00417.39
8.1.00.0060.00317.52
8.0.300.0000.00719.92
8.0.290.0050.00516.75
8.0.280.0030.00318.50
8.0.270.0030.00617.19
8.0.260.0040.00416.80
8.0.250.0000.00716.98
8.0.240.0000.00716.85
8.0.230.0080.00016.95
8.0.220.0080.00016.80
8.0.210.0050.00216.92
8.0.200.0030.00316.98
8.0.190.0080.00017.02
8.0.180.0000.00716.88
8.0.170.0000.00816.99
8.0.160.0040.00416.96
8.0.150.0040.00416.89
8.0.140.0030.00316.86
8.0.130.0030.00313.45
8.0.120.0040.00416.81
8.0.110.0040.00416.97
8.0.100.0050.00316.99
8.0.90.0030.00316.86
8.0.80.0030.01216.95
8.0.70.0050.00217.08
8.0.60.0070.00016.96
8.0.50.0000.00816.96
8.0.30.0060.01217.04
8.0.20.0100.01617.40
8.0.10.0050.00316.98
8.0.00.0170.00516.71
7.4.330.0000.00515.55
7.4.320.0060.00016.52
7.4.300.0000.00616.46
7.4.290.0070.00016.65
7.4.280.0030.00616.49
7.4.270.0000.00716.52
7.4.260.0000.00716.43
7.4.250.0050.00216.38
7.4.240.0000.00716.54
7.4.230.0080.00016.34
7.4.220.0040.00416.63
7.4.210.0030.01116.53
7.4.200.0070.00016.54
7.4.160.0080.00816.44
7.4.140.0070.01217.86
7.4.130.0100.01416.41
7.4.120.0110.00716.50
7.4.110.0100.00716.57
7.4.100.0060.01316.37
7.4.90.0140.00416.56
7.4.80.0050.01119.39
7.4.70.0030.01316.60
7.4.60.0030.01316.35
7.4.50.0110.00416.45
7.4.40.0180.00016.34
7.4.00.0110.00414.69
7.3.330.0000.00513.08
7.3.320.0050.00013.37
7.3.310.0000.00716.25
7.3.300.0030.00316.30
7.3.290.0000.00716.27
7.3.280.0040.01116.29
7.3.260.0100.00816.35
7.3.240.0100.00716.45
7.3.230.0090.00616.31
7.3.210.0100.00716.37
7.3.200.0090.00616.52
7.3.190.0070.01116.53
7.3.180.0070.01016.46
7.3.170.0120.00616.62
7.3.160.0030.01316.47
7.2.330.0080.01116.81
7.2.320.0030.01416.45
7.2.310.0160.00316.44
7.2.300.0110.00716.83
7.2.290.0130.01016.56
7.2.100.0070.01014.92
7.2.90.0110.00714.82
7.2.80.1050.00714.86
7.2.70.2990.00715.08
7.2.60.0910.01015.21
7.2.50.0150.00415.18
7.2.40.1870.00914.84
7.2.30.0140.00614.94
7.2.20.2200.00715.18
7.2.10.2350.00315.17
7.2.00.0380.00915.20
7.1.220.2210.00013.54
7.1.210.0370.00313.79
7.1.200.1990.00413.72
7.1.190.1810.00613.59
7.1.180.0390.00313.67
7.1.170.0070.00713.79
7.1.160.0160.00513.70
7.1.150.0590.01013.65
7.1.140.0790.00713.74
7.1.130.0120.00913.81
7.1.120.0970.00613.89
7.1.110.0170.00713.73
7.1.100.0910.00614.00
7.1.90.0370.00313.91
7.1.80.0030.01013.91
7.1.70.0160.00613.43
7.1.60.0820.01631.69
7.1.50.0510.00331.58
7.1.40.3130.01031.61
7.1.30.0830.00331.90
7.1.20.0420.01331.64
7.1.10.2860.01013.77
7.1.00.0120.00313.72
5.6.380.0130.00513.78

preferences:
59.82 ms | 400 KiB | 5 Q