3v4l.org

run code in 300+ PHP versions simultaneously
<?php class foo { static private $fn; static public function reg() { $x = new foo; self::$fn = function () use ($x) { $x->bar(); }; } public function baz() { self::$fn(); } private function bar() { echo 'bar'; } } foo::reg(); $foo = new foo; $foo->baz();

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.00718.43
8.3.60.0040.01516.63
8.3.50.0090.01021.13
8.3.40.0040.01118.64
8.3.30.0140.00018.84
8.3.20.0070.00020.16
8.3.10.0040.00423.52
8.3.00.0000.00721.73
8.2.190.0000.01518.54
8.2.180.0140.00016.50
8.2.170.0140.00722.96
8.2.160.0140.00020.39
8.2.150.0000.00824.18
8.2.140.0000.00824.66
8.2.130.0040.00421.04
8.2.120.0080.00026.35
8.2.110.0080.00019.27
8.2.100.0060.00617.93
8.2.90.0060.00319.08
8.2.80.0030.00617.97
8.2.70.0040.00417.50
8.2.60.0040.00417.80
8.2.50.0040.00418.09
8.2.40.0080.00022.36
8.2.30.0080.00019.45
8.2.20.0100.00017.74
8.2.10.0000.00718.05
8.2.00.0040.00418.09
8.1.280.0120.00925.92
8.1.270.0090.00921.77
8.1.260.0000.00828.09
8.1.250.0070.00028.09
8.1.240.0060.00322.46
8.1.230.0070.00417.70
8.1.220.0040.00717.74
8.1.210.0050.00318.77
8.1.200.0000.01017.35
8.1.190.0000.00817.35
8.1.180.0000.00718.10
8.1.170.0050.00318.49
8.1.160.0040.00420.77
8.1.150.0000.00719.01
8.1.140.0040.00419.58
8.1.130.0030.00317.64
8.1.120.0080.00017.53
8.1.110.0000.00717.37
8.1.100.0000.00717.46
8.1.90.0030.00517.46
8.1.80.0050.00217.40
8.1.70.0030.00517.52
8.1.60.0040.00417.58
8.1.50.0060.00317.44
8.1.40.0050.00317.45
8.1.30.0050.00317.51
8.1.20.0040.00417.48
8.1.10.0030.00617.57
8.1.00.0000.00817.35
8.0.300.0040.00418.77
8.0.290.0040.00416.63
8.0.280.0030.00318.27
8.0.270.0030.00317.24
8.0.260.0030.00317.07
8.0.250.0000.00716.85
8.0.240.0050.00216.97
8.0.230.0040.00417.06
8.0.220.0000.00616.78
8.0.210.0000.00716.90
8.0.200.0000.00717.04
8.0.190.0080.00016.94
8.0.180.0040.00417.00
8.0.170.0050.00316.95
8.0.160.0050.00316.87
8.0.150.0050.00316.95
8.0.140.0040.00416.90
8.0.130.0030.00513.41
8.0.120.0060.00316.84
8.0.110.0040.00416.91
8.0.100.0070.00017.00
8.0.90.0000.00717.02
8.0.80.0090.00616.92
8.0.70.0040.00416.84
8.0.60.0000.00716.88
8.0.50.0070.00016.79
8.0.30.0170.00317.07
8.0.20.0110.00817.42
8.0.10.0040.00416.97
8.0.00.0110.00616.84
7.4.330.0050.00016.81
7.4.320.0060.00016.51
7.4.300.0040.00416.52
7.4.290.0000.00816.41
7.4.280.0030.00616.58
7.4.270.0040.00416.47
7.4.260.0030.00316.61
7.4.250.0040.00416.56
7.4.240.0000.00716.47
7.4.230.0070.00016.35
7.4.220.0130.00716.54
7.4.210.0040.01316.61
7.4.200.0070.00016.41
7.4.160.0040.01416.59
7.4.150.0040.01417.40
7.4.140.0070.01417.86
7.4.130.0040.01316.62
7.4.120.0120.00516.41
7.4.110.0060.01216.64
7.4.100.0100.00616.44
7.4.90.0100.00716.56
7.4.80.0090.00919.39
7.4.70.0100.00716.44
7.4.60.0060.01416.40
7.4.50.0060.00916.34
7.4.40.0090.01216.58
7.4.30.0090.00916.39
7.4.00.0030.00914.86
7.3.330.0030.00313.39
7.3.320.0000.00513.25
7.3.310.0000.00816.23
7.3.300.0030.00316.45
7.3.290.0030.00316.38
7.3.280.0090.00916.42
7.3.270.0030.01417.40
7.3.260.0160.00816.61
7.3.250.0150.00216.36
7.3.240.0050.01216.69
7.3.230.0140.00316.39
7.3.210.0190.00416.51
7.3.200.0080.00919.39
7.3.190.0070.01316.40
7.3.180.0110.01116.43
7.3.170.0170.00516.42
7.3.160.0080.00816.34
7.2.330.0030.01416.75
7.2.320.0150.00816.68
7.2.310.0090.00616.38
7.2.300.0110.01416.67
7.2.290.0110.01116.71
7.2.60.0030.01016.97
7.1.200.0000.01315.81
7.1.100.0060.00917.67
7.1.70.0060.00317.16
7.1.60.0070.01319.40
7.1.50.0040.01116.69
7.1.00.0100.07022.30
7.0.200.0370.00314.74
7.0.60.0130.04721.66
7.0.50.0100.03317.84
7.0.40.0200.04320.09
7.0.30.0230.08020.09
7.0.20.0400.06020.23
7.0.10.0030.06320.30
7.0.00.0070.06720.15
5.6.280.0030.06721.11
5.6.210.0170.07320.51
5.6.200.0030.08318.24
5.6.190.0070.07020.50
5.6.180.0300.07320.46
5.6.170.0330.06720.44
5.6.160.0200.06720.54
5.6.150.0070.03718.29
5.6.140.0000.05718.19
5.6.130.0130.06018.17
5.6.120.0100.05021.00
5.6.110.0100.03721.03
5.6.100.0130.07321.01
5.6.90.0030.05721.05
5.6.80.0200.06020.41
5.5.350.0030.03720.36
5.5.340.0030.04017.96
5.5.330.0030.05320.40
5.5.320.0570.06320.32
5.5.310.0300.07720.23
5.5.300.0130.07717.98
5.5.290.0070.04017.94
5.5.280.0000.07320.65
5.5.270.0130.08320.85
5.5.260.0130.07320.87
5.5.250.0030.04020.47
5.5.240.0130.06020.08

preferences:
29.98 ms | 401 KiB | 5 Q