3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { static public $bar = ['baz' => 3]; static public function baz() { return 2; } } $bar = ['baz' => 'bar']; var_dump(Foo::$bar['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.60.0100.00716.48
8.3.50.0090.01216.38
8.3.40.0110.00318.92
8.3.30.0000.01418.83
8.3.20.0070.00020.25
8.3.10.0080.00023.66
8.3.00.0080.00023.61
8.2.180.0110.00418.41
8.2.170.0140.00722.96
8.2.160.0110.00420.39
8.2.150.0070.00025.66
8.2.140.0030.01024.66
8.2.130.0070.00019.83
8.2.120.0070.00026.35
8.2.110.0060.00322.12
8.2.100.0110.00018.05
8.2.90.0040.00419.23
8.2.80.0040.00417.97
8.2.70.0050.00517.50
8.2.60.0000.00817.93
8.2.50.0030.00518.07
8.2.40.0000.00722.15
8.2.30.0000.00720.63
8.2.20.0040.00417.63
8.2.10.0000.00718.06
8.2.00.0070.00017.93
8.1.280.0070.01025.92
8.1.270.0000.01023.79
8.1.260.0050.00328.09
8.1.250.0080.00028.09
8.1.240.0080.00320.68
8.1.230.0060.00619.10
8.1.220.0040.00417.74
8.1.210.0050.00318.77
8.1.200.0030.00617.23
8.1.190.0040.00417.23
8.1.180.0040.00418.10
8.1.170.0050.00318.52
8.1.160.0000.00720.61
8.1.150.0040.00418.82
8.1.140.0040.00419.45
8.1.130.0040.00417.68
8.1.120.0070.00017.39
8.1.110.0000.00717.35
8.1.100.0040.00317.37
8.1.90.0050.00317.28
8.1.80.0000.00717.31
8.1.70.0070.00017.41
8.1.60.0000.00817.43
8.1.50.0030.00517.42
8.1.40.0050.00317.55
8.1.30.0030.00517.72
8.1.20.0030.00617.54
8.1.10.0080.00017.41
8.1.00.0000.00817.61
8.0.300.0070.00018.77
8.0.290.0000.00816.75
8.0.280.0040.00418.32
8.0.270.0030.00317.19
8.0.260.0060.00317.06
8.0.250.0030.00316.97
8.0.240.0030.00316.85
8.0.230.0000.00716.99
8.0.220.0000.00716.90
8.0.210.0060.00016.74
8.0.200.0030.00316.84
8.0.190.0040.00416.84
8.0.180.0030.00616.88
8.0.170.0000.00916.85
8.0.160.0030.00416.93
8.0.150.0000.00716.71
8.0.140.0050.00516.80
8.0.130.0030.00313.30
8.0.120.0050.00316.90
8.0.110.0050.00316.79
8.0.100.0040.00416.90
8.0.90.0000.00716.99
8.0.80.0060.00916.82
8.0.70.0030.00616.96
8.0.60.0000.00716.93
8.0.50.0000.00816.88
8.0.30.0030.01217.01
8.0.20.0110.00917.40
8.0.10.0060.00317.00
8.0.00.0110.00716.73
7.4.330.0000.00516.83
7.4.320.0060.00016.43
7.4.300.0000.00616.50
7.4.290.0080.00316.45
7.4.280.0030.00616.63
7.4.270.0030.00316.61
7.4.260.0060.00316.49
7.4.250.0070.00016.56
7.4.240.0020.00616.55
7.4.230.0070.00016.48
7.4.220.0070.01316.45
7.4.210.0110.00416.64
7.4.200.0070.00016.60
7.4.160.0120.00316.50
7.4.150.0030.01417.40
7.4.140.0040.01417.86
7.4.130.0080.00816.67
7.4.120.0160.00216.52
7.4.110.0070.01016.48
7.4.100.0060.01516.64
7.4.90.0060.01216.56
7.4.80.0080.00819.39
7.4.70.0160.00016.58
7.4.60.0080.00816.67
7.4.50.0100.00316.45
7.4.40.0070.01016.57
7.4.30.0070.01016.46
7.4.00.0000.01314.70
7.3.330.0000.00513.18
7.3.320.0060.00013.33
7.3.310.0030.00316.26
7.3.300.0030.00616.44
7.3.290.0070.00816.34
7.3.280.0110.00816.39
7.3.270.0060.01217.40
7.3.260.0090.00916.46
7.3.250.0100.00816.36
7.3.240.0090.01016.38
7.3.230.0110.01116.43
7.3.210.0030.01316.43
7.3.200.0130.00919.39
7.3.190.0110.00816.47
7.3.180.0090.00816.45
7.3.170.0130.00316.28
7.3.160.0100.00616.46
7.3.10.0030.01216.53
7.3.00.0000.00916.63
7.2.330.0090.00916.60
7.2.320.0130.00316.58
7.2.310.0140.00316.59
7.2.300.0060.01216.43
7.2.290.0090.01316.70
7.2.130.0070.00716.54
7.2.120.0030.01016.80
7.2.110.0070.00716.84
7.2.100.0060.00616.74
7.2.90.0060.00616.40
7.2.80.0100.00416.93
7.2.70.0000.01316.71
7.2.60.0080.00516.72
7.2.50.0070.00716.67
7.2.40.0060.00316.91
7.2.30.0000.01516.62
7.2.20.0030.01016.40
7.2.10.0090.00616.64
7.2.00.0050.00918.06
7.1.250.0070.01015.76
7.1.200.0030.00815.71
7.1.100.0070.00718.08
7.1.70.0030.00317.07
7.1.60.0160.01019.20
7.1.50.0040.01416.94
7.1.00.0000.08022.30
7.0.200.0000.00716.88
7.0.60.0030.06721.67
7.0.50.0070.07317.86
7.0.40.0070.04020.18
7.0.30.0300.06720.06
7.0.20.0230.07320.22
7.0.10.0070.09320.33
7.0.00.0030.09020.19
5.6.280.0000.03720.89
5.6.210.0100.06720.56
5.6.200.0070.08318.18
5.6.190.0100.08020.38
5.6.180.0500.07020.41
5.6.170.0300.06020.62
5.6.160.0100.07320.57
5.6.150.0000.07018.19
5.6.140.0030.04018.11
5.6.130.0070.05318.18
5.6.120.0030.04021.18
5.6.110.0070.08321.03
5.6.100.0030.08021.01
5.6.90.0030.08721.13
5.6.80.0100.08020.40
5.5.350.0070.08320.35
5.5.340.0030.05018.09
5.5.330.0170.07720.40
5.5.320.0530.05320.35
5.5.310.0230.05320.37
5.5.300.0030.03717.98
5.5.290.0130.07717.98
5.5.280.0030.04020.98
5.5.270.0030.05320.97
5.5.260.0030.06020.87
5.5.250.0030.04020.68
5.5.240.0170.03320.36

preferences:
60.69 ms | 400 KiB | 5 Q