3v4l.org

run code in 300+ PHP versions simultaneously
<?php error_reporting(E_ALL); $f=function($var){ echo "the closure test $var\n"; }; class Bla { public $foo; public function __construct($f){ $this->foo = $f; } } $bla = new Bla($f); ($bla->foo)("someval");

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.60.0070.01116.50
8.3.50.0080.01021.95
8.3.40.0070.00719.02
8.3.30.0120.00618.79
8.3.20.0070.00020.20
8.3.10.0040.00421.97
8.3.00.0080.00021.85
8.2.180.0110.00416.61
8.2.170.0140.00722.96
8.2.160.0110.00422.08
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0050.00320.87
8.2.120.0040.00426.35
8.2.110.0060.00320.94
8.2.100.0120.00017.93
8.2.90.0040.00419.05
8.2.80.0050.00317.97
8.2.70.0040.00417.38
8.2.60.0030.00718.05
8.2.50.0000.00818.09
8.2.40.0040.00422.11
8.2.30.0000.00719.45
8.2.20.0080.00017.56
8.2.10.0040.00417.98
8.2.00.0050.00218.11
8.1.280.0080.00625.92
8.1.270.0100.00722.24
8.1.260.0000.00828.09
8.1.250.0040.00428.09
8.1.240.0070.01022.52
8.1.230.0070.00317.82
8.1.220.0050.00317.74
8.1.210.0050.00418.77
8.1.200.0030.00617.34
8.1.190.0000.00817.35
8.1.180.0050.00318.10
8.1.170.0000.00918.56
8.1.160.0000.00720.81
8.1.150.0000.00818.89
8.1.140.0040.00419.58
8.1.130.0030.00317.74
8.1.120.0030.00417.52
8.1.110.0000.00717.38
8.1.100.0000.00817.40
8.1.90.0040.00417.48
8.1.80.0070.00017.36
8.1.70.0000.00717.50
8.1.60.0030.00517.48
8.1.50.0040.00417.47
8.1.40.0050.00317.43
8.1.30.0000.00917.64
8.1.20.0030.00517.52
8.1.10.0000.00817.55
8.1.00.0080.00017.54
8.0.300.0030.00618.77
8.0.290.0050.00316.63
8.0.280.0000.00718.35
8.0.270.0070.00017.30
8.0.260.0040.00417.28
8.0.250.0030.00316.95
8.0.240.0030.00316.82
8.0.230.0040.00416.83
8.0.220.0000.00816.86
8.0.210.0000.00816.91
8.0.200.0060.00316.87
8.0.190.0050.00316.90
8.0.180.0040.00416.81
8.0.170.0000.00816.93
8.0.160.0000.00716.90
8.0.150.0030.00716.88
8.0.140.0040.00416.81
8.0.130.0060.00013.27
8.0.120.0000.00816.86
8.0.110.0040.00416.85
8.0.100.0050.00316.91
8.0.90.0040.00416.77
8.0.80.0090.00616.86
8.0.70.0030.00316.66
8.0.60.0070.00016.67
8.0.50.0000.00816.71
8.0.30.0090.01117.25
8.0.20.0090.01017.43
8.0.10.0000.00816.91
8.0.00.0100.01116.82
7.4.330.0000.00516.85
7.4.320.0030.00316.59
7.4.300.0050.00216.60
7.4.290.0070.00016.60
7.4.280.0080.00316.59
7.4.270.0040.00416.40
7.4.260.0050.00516.60
7.4.250.0080.00016.45
7.4.240.0000.00716.61
7.4.230.0070.00016.48
7.4.220.0100.00716.56
7.4.210.0050.01216.57
7.4.200.0000.00716.40
7.4.160.0110.00416.56
7.4.150.0070.01017.40
7.4.140.0130.00617.86
7.4.130.0120.00716.63
7.4.120.0140.00316.62
7.4.110.0130.00316.52
7.4.100.0060.01616.54
7.4.90.0090.01216.49
7.4.80.0090.00919.39
7.4.70.0120.00616.33
7.4.60.0150.00516.59
7.4.50.0040.01116.41
7.4.40.0090.01216.40
7.4.30.0070.01316.54
7.4.00.0090.00814.97
7.3.330.0030.00313.22
7.3.320.0030.00313.43
7.3.310.0050.00316.34
7.3.300.0030.00316.24
7.3.290.0030.00316.22
7.3.280.0080.01016.37
7.3.270.0070.01317.40
7.3.260.0070.01016.59
7.3.250.0080.01016.35
7.3.240.0120.00816.57
7.3.230.0180.01016.39
7.3.210.0130.00316.64
7.3.200.0090.00919.39
7.3.190.0040.01516.42
7.3.180.0130.00316.42
7.3.170.0070.01116.36
7.3.160.0070.00716.31
7.3.120.0090.00915.10
7.3.110.0050.01214.82
7.3.100.0130.00314.87
7.3.90.0090.00914.80
7.3.80.0070.00415.04
7.3.70.0100.00714.93
7.3.60.0100.00314.86
7.3.50.0070.00714.93
7.3.40.0090.00614.90
7.3.30.0090.00614.62
7.3.20.0030.01016.69
7.3.10.0040.01116.61
7.3.00.0060.01016.86
7.2.330.0130.00416.81
7.2.320.0030.01316.49
7.2.310.0120.00416.39
7.2.300.0030.01316.77
7.2.290.0080.00816.57
7.2.250.0090.00915.01
7.2.240.0110.00715.18
7.2.230.0070.00714.93
7.2.220.0130.00715.03
7.2.210.0060.01315.23
7.2.200.0000.01215.29
7.2.190.0030.00915.11
7.2.180.0070.00715.15
7.2.170.0110.00715.09
7.2.60.0060.00917.00
7.2.00.0030.00919.44
7.1.330.0070.00716.05
7.1.320.0070.01116.05
7.1.310.0070.01015.77
7.1.300.0030.00915.85
7.1.290.0090.00616.00
7.1.280.0000.01315.59
7.1.270.0060.00615.63
7.1.260.0040.01215.79
7.1.200.0070.00715.77
7.1.100.0170.00018.16
7.1.70.0050.00217.09
7.1.60.0170.00719.40
7.1.50.0040.02116.95
7.1.00.0070.07322.45
7.0.200.0420.00714.55
7.0.60.0230.06721.83
7.0.50.0000.05017.85
7.0.40.0130.08320.23
7.0.30.0570.05720.09
7.0.20.0230.04020.08
7.0.10.0130.07320.23
7.0.00.0130.07320.12
5.6.280.0000.03321.10
5.6.210.0100.07720.48
5.6.200.0030.04018.24
5.6.190.0100.03720.68
5.6.180.0370.04720.64
5.6.170.0130.04020.48
5.6.160.0030.06720.52
5.6.150.0130.06318.15
5.6.140.0030.08318.28
5.6.130.0000.04318.18
5.6.120.0070.04320.98
5.6.110.0030.06721.07
5.6.100.0100.08020.98
5.6.90.0030.06021.13
5.6.80.0130.05320.41
5.5.350.0200.06320.43
5.5.340.0100.07318.03
5.5.330.0030.04720.19
5.5.320.0200.04020.20
5.5.310.0370.07320.37
5.5.300.0100.07717.96
5.5.290.0070.05317.98
5.5.280.0000.05020.87
5.5.270.0070.08320.84
5.5.260.0030.04020.79
5.5.250.0100.07720.51
5.5.240.0130.03320.26

preferences:
58.76 ms | 401 KiB | 5 Q