3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public function bar() { $foo = 'foo'; $bar = new class() { public function classMethod() { var_dump($foo); } }; $bar->classMethod(); } } $foo = new Foo(); $foo->bar();

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.68
8.3.50.0070.01321.25
8.3.40.0090.00918.70
8.3.30.0040.01118.86
8.3.20.0040.00420.21
8.3.10.0000.00821.90
8.3.00.0000.00723.48
8.2.180.0110.00718.41
8.2.170.0070.01022.96
8.2.160.0100.00320.58
8.2.150.0060.00325.66
8.2.140.0120.00624.66
8.2.130.0050.00319.82
8.2.120.0040.00426.35
8.2.110.0090.00322.24
8.2.100.0070.00417.93
8.2.90.0040.00419.21
8.2.80.0080.00017.97
8.2.70.0070.00317.38
8.2.60.0030.00518.03
8.2.50.0030.00518.07
8.2.40.0030.00622.16
8.2.30.0070.00020.73
8.2.20.0000.00717.80
8.2.10.0000.00718.17
8.2.00.0000.00817.99
8.1.280.0140.00725.92
8.1.270.0060.00321.96
8.1.260.0050.00328.09
8.1.250.0060.00328.09
8.1.240.0140.00722.49
8.1.230.0070.00419.02
8.1.220.0060.00317.77
8.1.210.0060.00318.77
8.1.200.0080.00317.23
8.1.190.0060.00317.22
8.1.180.0090.00018.10
8.1.170.0000.00718.59
8.1.160.0040.00420.77
8.1.150.0040.00418.89
8.1.140.0030.00519.44
8.1.130.0000.00717.58
8.1.120.0030.00317.47
8.1.110.0000.00717.44
8.1.100.0050.00317.46
8.1.90.0000.00717.35
8.1.80.0060.00317.42
8.1.70.0030.00317.35
8.1.60.0000.00717.49
8.1.50.0040.00417.57
8.1.40.0060.00317.50
8.1.30.0000.00817.64
8.1.20.0040.00417.59
8.1.10.0000.00717.39
8.1.00.0000.00717.39
8.0.300.0040.00418.77
8.0.290.0070.00016.88
8.0.280.0050.00218.51
8.0.270.0000.00717.26
8.0.260.0060.00017.18
8.0.250.0030.00316.94
8.0.240.0030.00517.01
8.0.230.0030.00316.93
8.0.220.0050.00316.97
8.0.210.0050.00316.92
8.0.200.0070.00017.03
8.0.190.0030.00816.87
8.0.180.0090.00017.02
8.0.170.0040.00416.88
8.0.160.0030.00316.96
8.0.150.0000.00816.98
8.0.140.0040.00416.89
8.0.130.0060.00013.34
8.0.120.0030.00516.88
8.0.110.0040.00416.93
8.0.100.0000.00716.82
8.0.90.0040.00416.80
8.0.80.0100.00716.99
8.0.70.0000.00716.76
8.0.60.0040.00416.84
8.0.50.0040.00416.78
8.0.30.0100.00816.83
8.0.20.0080.01117.40
8.0.10.0070.00016.90
8.0.00.0120.00916.73
7.4.330.0000.00516.82
7.4.320.0030.00316.43
7.4.300.0040.00416.59
7.4.290.0050.00316.48
7.4.280.0060.00316.51
7.4.270.0030.00316.61
7.4.260.0070.00316.61
7.4.250.0000.00716.45
7.4.240.0020.00516.55
7.4.230.0030.00316.39
7.4.220.0140.00316.45
7.4.210.0080.01216.44
7.4.200.0000.00716.56
7.4.160.0140.00716.50
7.4.150.0060.01117.40
7.4.140.0110.01117.86
7.4.130.0090.01116.60
7.4.120.0090.00916.47
7.4.110.0090.00916.58
7.4.100.0090.01216.57
7.4.90.0140.00416.48
7.4.80.0120.00619.39
7.4.70.0110.00516.39
7.4.60.0070.00716.40
7.4.50.0130.00016.57
7.4.40.0160.00616.63
7.4.30.0100.00716.74
7.4.00.0000.01614.79
7.3.330.0000.00513.29
7.3.320.0080.00013.29
7.3.310.0070.00016.30
7.3.300.0020.00516.16
7.3.290.0000.00716.31
7.3.280.0060.01216.34
7.3.270.0090.00917.40
7.3.260.0130.00316.59
7.3.250.0090.01016.38
7.3.240.0070.01216.34
7.3.230.0090.00916.39
7.3.210.0080.00816.23
7.3.200.0070.01119.39
7.3.190.0100.00716.48
7.3.180.0110.00616.46
7.3.170.0070.01416.48
7.3.160.0100.00516.31
7.2.330.0060.01216.72
7.2.320.0110.00916.65
7.2.310.0030.01316.54
7.2.300.0070.01016.52
7.2.290.0170.00016.37
7.2.80.0090.00016.50
7.2.60.0060.00916.57
7.2.00.0030.01019.00
7.1.200.0000.01115.89
7.1.100.0040.00818.04
7.1.70.0040.00417.20
7.1.60.0040.02119.20
7.1.50.0040.00716.76
7.1.00.0070.07322.51
7.0.200.0000.01116.68
7.0.60.0300.06319.84
7.0.50.0030.04317.87
7.0.40.0030.04720.09
7.0.30.0300.07320.34
7.0.20.0300.04720.12
7.0.10.0030.05020.23
7.0.00.0100.07020.25
5.6.280.0070.03021.05
5.6.210.0130.07320.62
5.6.200.0100.04018.21
5.6.190.0030.08320.46
5.6.180.0500.04020.55
5.6.170.0270.06720.55
5.6.160.0100.09020.52
5.6.150.0030.08318.15
5.6.140.0030.08318.19
5.6.130.0070.03718.27
5.6.120.0170.07321.00
5.6.110.0100.08321.01
5.6.100.0030.09321.11
5.6.90.0070.07721.10
5.6.80.0100.07720.41
5.5.350.4070.04020.39
5.5.340.0100.07317.92
5.5.330.0070.05320.23
5.5.320.0670.05720.36
5.5.310.0270.07720.23
5.5.300.0100.06718.09
5.5.290.0070.07717.95
5.5.280.0170.07320.74
5.5.270.0130.07720.82
5.5.260.0000.04320.79
5.5.250.0170.07020.58
5.5.240.0270.07020.26

preferences:
34.42 ms | 401 KiB | 5 Q