3v4l.org

run code in 300+ PHP versions simultaneously
<?php const FOO=1; class bar { static $v = [ FOO => 1, FOOX => 1, ]; static $w; } // If following line is commentted out, undefined constant error disappears. var_dump(bar::$w);

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.0030.01416.50
8.3.50.0110.01116.64
8.3.40.0150.00018.79
8.3.30.0070.00718.51
8.3.20.0040.00421.68
8.3.10.0080.00023.64
8.3.00.0040.00417.68
8.2.180.0000.01518.11
8.2.170.0140.00022.96
8.2.160.0140.00020.43
8.2.150.0030.00525.66
8.2.140.0040.00424.66
8.2.130.0060.00326.16
8.2.120.0040.00420.94
8.2.110.0050.00322.08
8.2.100.0080.00417.84
8.2.90.0030.00517.97
8.2.80.0000.00819.11
8.2.70.0120.00017.50
8.2.60.0100.00017.80
8.2.50.0060.00318.07
8.2.40.0040.00418.17
8.2.30.0060.00317.99
8.2.20.0040.00418.02
8.2.10.0030.00617.64
8.2.00.0000.00718.04
8.1.280.0070.00725.92
8.1.270.0040.00423.97
8.1.260.0030.00626.35
8.1.250.0040.00428.09
8.1.240.0090.00023.98
8.1.230.0080.00320.72
8.1.220.0050.00317.79
8.1.210.0090.00018.77
8.1.200.0030.00617.35
8.1.190.0030.00717.10
8.1.180.0030.00518.10
8.1.170.0040.00418.76
8.1.160.0080.00018.77
8.1.150.0030.00319.00
8.1.140.0000.00717.61
8.1.130.0030.00318.93
8.1.120.0040.00717.38
8.1.110.0000.00717.38
8.1.100.0040.00417.38
8.1.90.0030.00317.36
8.1.80.0100.00017.35
8.1.70.0000.00717.37
8.1.60.0050.00217.43
8.1.50.0100.00017.49
8.1.40.0000.00817.39
8.1.30.0000.00917.58
8.1.20.0070.00317.61
8.1.10.0050.00317.36
8.1.00.0040.00417.32
8.0.300.0000.00720.09
8.0.290.0000.00716.75
8.0.280.0030.00318.43
8.0.270.0040.00416.74
8.0.260.0060.00016.83
8.0.250.0000.00716.82
8.0.240.0070.00016.95
8.0.230.0000.00716.89
8.0.220.0040.00416.94
8.0.210.0030.00316.97
8.0.200.0030.00316.89
8.0.190.0000.00816.95
8.0.180.0000.00716.96
8.0.170.0030.00617.02
8.0.160.0040.00416.96
8.0.150.0050.00216.89
8.0.140.0030.00516.90
8.0.130.0000.00613.35
8.0.120.0040.00416.88
8.0.110.0000.00716.83
8.0.100.0030.00516.92
8.0.90.0070.00016.80
8.0.80.0060.00916.98
8.0.70.0000.00816.76
8.0.60.0040.00417.00
8.0.50.0040.00416.77
8.0.30.0090.00917.04
8.0.20.0130.00417.40
8.0.10.0060.00316.80
8.0.00.0100.00716.76
7.4.330.0000.00515.55
7.4.320.0030.00516.57
7.4.300.0030.00316.57
7.4.290.0070.00316.50
7.4.280.0030.00516.48
7.4.270.0030.00316.43
7.4.260.0040.00416.40
7.4.250.0000.00716.43
7.4.240.0080.00016.53
7.4.230.0000.00716.50
7.4.220.0000.00816.22
7.4.210.0030.01316.60
7.4.200.0020.00516.63
7.4.160.0060.01016.56
7.4.140.0090.00917.86
7.4.130.0140.00716.43
7.4.120.0110.00916.54
7.4.110.0090.00916.49
7.4.100.0140.00316.70
7.4.90.0100.00816.41
7.4.80.0140.00319.39
7.4.70.0060.01016.29
7.4.60.0110.00416.44
7.4.50.0060.01216.64
7.4.40.0030.01616.55
7.4.00.0030.01614.99
7.3.330.0060.00013.26
7.3.320.0060.00013.16
7.3.310.0030.00316.34
7.3.300.0030.00316.29
7.3.290.0030.00316.27
7.3.280.0020.01316.22
7.3.260.0130.00816.50
7.3.240.0120.00616.36
7.3.230.0170.00716.42
7.3.210.0030.01916.47
7.3.200.0070.01016.26
7.3.190.0100.01016.25
7.3.180.0130.00716.45
7.3.170.0100.00716.43
7.3.160.0040.01216.43
7.3.120.0050.01114.70
7.3.110.0050.01214.61
7.3.100.0030.01014.58
7.3.90.0050.00414.60
7.3.80.0060.00914.86
7.3.70.0090.00614.66
7.3.60.0110.00814.55
7.3.50.0100.00714.62
7.3.40.0090.00514.62
7.3.30.0090.00514.71
7.3.20.0050.00916.59
7.3.10.0090.00416.46
7.3.00.0050.00716.47
7.2.330.0090.01216.35
7.2.320.0070.01016.30
7.2.310.0080.00816.47
7.2.300.0110.00816.38
7.2.290.0090.00816.52
7.2.250.0070.01115.02
7.2.240.0020.01615.04
7.2.230.0070.01015.02
7.2.220.0050.00914.96
7.2.210.0070.00714.52
7.2.200.0050.01114.77
7.2.190.0070.00714.69
7.2.180.0070.00714.67
7.2.170.0080.00814.87
7.2.160.0050.01014.90
7.2.150.0080.00816.69
7.2.140.0070.00716.70
7.2.130.0060.00716.60
7.2.120.0030.01016.63
7.2.110.0030.00916.47
7.2.100.0070.00716.57
7.2.90.0050.00716.57
7.2.80.0030.00916.58
7.2.70.0050.00916.74
7.2.60.0070.00816.57
7.2.50.0050.00816.86
7.2.40.0070.00416.66
7.2.30.0110.00817.05
7.2.20.0100.00816.86
7.2.10.0110.00916.91
7.2.00.0090.00716.90
7.1.330.0030.01115.58
7.1.320.0050.00715.58
7.1.310.0170.00315.61
7.1.300.0090.01315.49
7.1.290.0040.01015.39
7.1.280.0030.01415.42
7.1.270.0050.00915.39
7.1.260.0070.00515.46
7.1.250.0060.00715.52
7.1.200.0030.00915.63
7.1.150.0210.01016.70
7.1.140.0180.01216.18
7.1.130.0180.01316.59
7.1.120.0180.01116.92
7.1.110.0120.01116.03
7.1.100.0540.00916.23
7.1.90.0160.01116.14
7.1.80.0150.01216.16
7.1.70.0150.01114.91
7.1.60.0350.02033.20
7.1.50.0520.01832.96
7.1.40.0260.01232.49
7.1.30.0310.01532.64
7.1.20.0330.01232.62
7.1.10.0120.01014.55
7.1.00.0070.01114.64

preferences:
60.02 ms | 401 KiB | 5 Q