3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { public function foo() { $f = function() { self->a; }; $f(); } } $a = new A; $a->foo();

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.00718.55
8.3.50.0080.00921.02
8.3.40.0100.01018.71
8.3.30.0110.00320.40
8.3.20.0070.00020.16
8.3.10.0030.00622.05
8.3.00.0040.00422.52
8.2.180.0100.00616.50
8.2.170.0070.00722.96
8.2.160.0120.00320.36
8.2.150.0030.00524.18
8.2.140.0090.00024.66
8.2.130.0000.00826.16
8.2.120.0050.00319.77
8.2.110.0100.00022.12
8.2.100.0090.00018.75
8.1.280.0110.00425.92
8.1.270.0080.00820.35
8.1.260.0000.00726.35
8.1.250.0070.00028.09
8.1.240.0070.00318.45
8.1.230.0060.00318.36
5.4.250.0100.04112.39
5.4.240.0050.03812.39
5.4.230.0040.04012.38
5.4.220.0070.04212.38
5.4.210.0070.03912.38
5.4.200.0040.04112.38
5.4.190.0060.04312.38
5.4.180.0060.03612.38
5.4.170.0120.03612.39
5.4.160.0070.04112.38
5.4.150.0070.04112.38
5.4.140.0070.03612.07
5.4.130.0050.03812.05
5.4.120.0060.03512.02
5.4.110.0070.03612.01
5.4.100.0050.03612.01
5.4.90.0050.03812.02
5.4.80.0050.03812.01
5.4.70.0070.04212.01
5.4.60.0070.03912.01
5.4.50.0070.03612.01
5.4.40.0050.03611.99
5.4.30.0110.04511.99
5.4.20.0070.04111.99
5.4.10.0090.04011.99
5.4.00.0070.04111.48
5.3.280.0070.03712.71
5.3.270.0090.04612.72
5.3.260.0070.03812.72
5.3.250.0060.03612.72
5.3.240.0070.04212.72
5.3.230.0040.04112.71
5.3.220.0090.03412.68
5.3.210.0040.04112.68
5.3.200.0050.03712.68
5.3.190.0060.03812.68
5.3.180.0070.03812.68
5.3.170.0060.03512.67
5.3.160.0050.03812.67
5.3.150.0060.03712.67
5.3.140.0070.03412.66
5.3.130.0070.03712.65
5.3.120.0080.03712.65
5.3.110.0080.03712.66
5.3.100.0030.03912.12
5.3.90.0060.03712.10
5.3.80.0070.03812.07
5.3.70.0090.03312.08
5.3.60.0050.03812.06
5.3.50.0070.03912.01
5.3.40.0070.03912.01
5.3.30.0050.03611.97
5.3.20.0090.03511.74
5.3.10.0040.04111.71
5.3.00.0060.04211.69
5.2.170.0050.0329.19
5.2.160.0040.0329.19
5.2.150.0050.0329.20
5.2.140.0050.0349.19
5.2.130.0050.0289.15
5.2.120.0050.0329.15
5.2.110.0050.0339.16
5.2.100.0070.0279.15
5.2.90.0030.0349.15
5.2.80.0030.0319.15
5.2.70.0050.0309.14
5.2.60.0040.0349.10
5.2.50.0080.0289.07
5.2.40.0040.0329.04
5.2.30.0070.0289.02
5.2.20.0050.0299.01
5.2.10.0040.0288.92
5.2.00.0050.0288.78
5.1.60.0040.0298.06
5.1.50.0040.0318.06
5.1.40.0030.0258.04
5.1.30.0050.0258.40
5.1.20.0040.0268.42
5.1.10.0040.0278.14
5.1.00.0030.0278.13
5.0.50.0040.0206.62
5.0.40.0040.0196.48
5.0.30.0040.0316.30
5.0.20.0020.0236.27
5.0.10.0030.0206.23
5.0.00.0020.0326.22
4.4.90.0030.0164.78
4.4.80.0040.0144.76
4.4.70.0010.0214.76
4.4.60.0020.0164.75
4.4.50.0020.0174.77
4.4.40.0050.0264.71
4.4.30.0040.0194.76
4.4.20.0040.0144.84
4.4.10.0050.0164.85
4.4.00.0040.0264.76
4.3.110.0020.0194.67
4.3.100.0030.0164.66
4.3.90.0040.0154.63
4.3.80.0040.0274.58
4.3.70.0040.0154.63
4.3.60.0050.0164.63
4.3.50.0020.0194.63
4.3.40.0050.0284.53
4.3.30.0020.0173.29
4.3.20.0040.0153.27
4.3.10.0020.0163.23
4.3.00.0100.0236.76

preferences:
36.26 ms | 401 KiB | 5 Q