3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public static function test() { return '__METHOD__<br>'; } } define('CONFIG', [ Foo::test(), 'ok!' ]); var_dump(CONFIG[0]);

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.0000.01416.50
8.3.50.0150.00522.06
8.3.40.0060.00918.49
8.3.30.0110.00318.57
8.3.20.0080.00020.21
8.3.10.0050.00323.43
8.3.00.0080.00019.57
8.2.180.0090.00616.38
8.2.170.0160.00022.96
8.2.160.0100.00320.32
8.2.150.0040.00424.18
8.2.140.0000.00824.66
8.2.130.0040.00419.45
8.2.120.0050.00326.35
8.2.110.0060.00322.16
8.2.100.0040.00818.04
8.2.90.0030.00519.05
8.2.80.0080.00017.97
8.2.70.0050.00517.63
8.2.60.0000.00817.80
8.2.50.0050.00318.07
8.2.40.0040.00422.20
8.2.30.0100.00020.50
8.2.20.0000.00717.56
8.2.10.0070.00018.04
8.2.00.0070.00017.93
8.1.280.0070.00725.92
8.1.270.0030.00620.23
8.1.260.0000.00828.09
8.1.250.0000.00828.09
8.1.240.0090.00023.92
8.1.230.0000.01119.07
8.1.220.0080.00017.74
8.1.210.0050.00318.77
8.1.200.0060.00317.22
8.1.190.0090.00017.00
8.1.180.0040.00418.10
8.1.170.0090.00018.59
8.1.160.0000.00720.57
8.1.150.0070.00018.75
8.1.140.0030.00619.39
8.1.130.0000.00717.67
8.1.120.0000.00717.43
8.1.110.0000.00817.29
8.1.100.0050.00317.45
8.1.90.0000.00917.37
8.1.80.0030.00517.34
8.1.70.0050.00317.32
8.1.60.0040.00417.42
8.1.50.0000.00817.50
8.1.40.0070.00017.48
8.1.30.0040.00417.58
8.1.20.0050.00317.59
8.1.10.0000.00817.50
8.1.00.0080.00017.45
8.0.300.0060.00318.77
8.0.290.0060.00316.63
8.0.280.0000.00718.45
8.0.270.0040.00417.25
8.0.260.0030.00317.30
8.0.250.0030.00316.98
8.0.240.0030.00316.94
8.0.230.0000.00816.84
8.0.220.0000.00816.98
8.0.210.0040.00416.78
8.0.200.0000.00716.81
8.0.190.0000.01216.97
8.0.180.0030.00516.89
8.0.170.0040.00416.92
8.0.160.0000.00916.95
8.0.150.0030.00516.80
8.0.140.0040.00416.75
8.0.130.0030.00313.26
8.0.120.0000.00816.69
8.0.110.0050.00316.67
8.0.100.0000.00716.94
8.0.90.0000.00716.79
8.0.80.0000.01416.81
8.0.70.0000.00716.67
8.0.60.0000.00816.86
8.0.50.0000.00716.86
8.0.30.0140.00417.15
8.0.20.0080.01417.40
8.0.10.0000.00916.98
8.0.00.0120.00716.77
7.4.330.0000.00516.78
7.4.320.0030.00316.37
7.4.300.0000.00616.45
7.4.290.0030.00316.46
7.4.280.0040.00416.57
7.4.270.0040.00416.55
7.4.260.0030.00616.50
7.4.250.0000.00816.40
7.4.240.0020.00516.49
7.4.230.0060.00016.61
7.4.220.0050.01416.35
7.4.210.0130.01316.51
7.4.200.0070.00016.64
7.4.160.0090.00616.61
7.4.150.0140.00717.40
7.4.140.0150.01017.86
7.4.130.0080.01116.39
7.4.120.0080.01016.46
7.4.110.0140.00316.51
7.4.100.0150.00316.66
7.4.90.0100.00716.46
7.4.80.0080.00819.39
7.4.70.0130.00416.52
7.4.60.0090.00616.55
7.4.50.0040.00816.42
7.4.40.0170.00716.48
7.4.30.0120.01116.64
7.4.00.0110.00414.95
7.3.330.0050.00013.29
7.3.320.0000.00513.47
7.3.310.0050.00216.39
7.3.300.0050.00216.23
7.3.290.0010.01616.36
7.3.280.0070.01116.33
7.3.270.0040.01417.40
7.3.260.0100.00716.54
7.3.250.0100.00816.37
7.3.240.0110.00716.50
7.3.230.0090.00916.39
7.3.210.0100.00716.48
7.3.200.0090.00616.63
7.3.190.0060.01016.39
7.3.180.0120.00616.30
7.3.170.0130.00316.31
7.3.160.0170.00016.55
7.2.330.0070.01016.49
7.2.320.0100.00716.73
7.2.310.0070.01416.43
7.2.300.0040.01316.61
7.2.290.0170.00016.59
7.2.60.0090.00616.91
7.2.00.0030.01019.46
7.1.200.0100.00315.67
7.1.100.0230.01216.43
7.1.70.0040.00416.86
7.1.60.0070.01719.52
7.1.50.0070.01416.96
7.1.00.0030.07722.41
7.0.200.0250.00416.34
7.0.60.0070.08019.94
7.0.50.0070.06017.95
7.0.40.0030.04720.22
7.0.30.0230.04320.16
7.0.20.0170.06020.26
7.0.10.0170.08020.21
7.0.00.0130.03320.15
5.6.280.0000.03320.86
5.6.210.0170.06720.53
5.6.200.0030.07718.15
5.6.190.0070.08720.61
5.6.180.0130.04320.77
5.6.170.0270.07320.55
5.6.160.0100.04020.71
5.6.150.0100.06318.27
5.6.140.0130.07718.21
5.6.130.0070.07718.23
5.6.120.0100.08021.04
5.6.110.0170.07320.98
5.6.100.0030.06321.01
5.6.90.0070.08321.08
5.6.80.0100.07720.38
5.5.350.0370.06020.43
5.5.340.0100.05017.96
5.5.330.0100.06320.41
5.5.320.0630.05320.52
5.5.310.0230.07020.28
5.5.300.0130.07318.01
5.5.290.0070.08317.98
5.5.280.0100.04020.73
5.5.270.0000.08720.87
5.5.260.0070.06020.88
5.5.250.0100.08020.47
5.5.240.0070.07720.24

preferences:
74.77 ms | 401 KiB | 5 Q