3v4l.org

run code in 300+ PHP versions simultaneously
<?php class a { const b = 'Interface constant'; } // Prints: Interface constant echo b::b; // This will however not work because it's not allowed to // override constants. class b extends a { const b = 'Class constant'; } ?>

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.0040.01216.48
8.3.50.0130.00316.64
8.3.40.0090.00921.91
8.3.30.0000.01518.47
8.3.20.0040.00424.18
8.3.10.0090.00924.66
8.3.00.0020.00526.16
8.2.180.0070.01425.92
8.2.170.0150.00018.96
8.2.160.0110.00322.96
8.2.150.0000.00725.66
8.2.140.0000.00824.66
8.2.130.0040.00426.16
8.2.120.0040.00426.35
8.2.110.0000.00919.13
8.2.100.0090.00617.75
8.2.90.0000.00917.63
8.2.80.0080.00018.69
8.2.70.0080.00017.50
8.2.60.0050.00317.50
8.2.50.0000.00818.05
8.2.40.0020.00518.09
8.2.30.0040.00417.86
8.2.20.0040.00417.86
8.2.10.0040.00419.18
8.2.00.0030.00319.17
8.1.280.0070.00725.92
8.1.270.0080.00023.99
8.1.260.0070.00028.09
8.1.250.0000.00828.09
8.1.240.0040.00819.41
8.1.230.0090.00320.99
8.1.220.0040.00418.42
8.1.210.0040.00418.77
8.1.200.0030.00617.35
8.1.190.0050.00317.23
8.1.180.0000.00818.10
8.1.170.0040.00418.59
8.1.160.0000.00718.93
8.1.150.0000.00718.86
8.1.140.0030.00618.76
8.1.130.0030.00320.23
8.1.120.0000.00717.23
8.1.110.0050.00317.41
8.1.100.0050.00317.23
8.1.90.0000.00717.39
8.1.80.0000.00917.31
8.1.70.0000.00717.31
8.1.60.0040.00417.56
8.1.50.0030.00617.43
8.1.40.0060.00317.35
8.1.30.0000.00817.55
8.1.20.0000.00917.47
8.1.10.0060.00317.45
8.1.00.0030.00717.41
8.0.300.0090.00018.77
8.0.290.0000.00916.75
8.0.280.0000.00718.42
8.0.270.0070.00017.99
8.0.260.0070.00020.18
8.0.250.0000.00716.80
8.0.240.0060.00016.89
8.0.230.0030.00316.92
8.0.220.0080.00016.66
8.0.210.0060.00016.85
8.0.200.0070.00016.86
8.0.190.0030.00316.89
8.0.180.0070.00016.86
8.0.170.0000.00816.86
8.0.160.0040.00416.89
8.0.150.0070.00016.83
8.0.140.0050.00316.85
8.0.130.0050.00013.25
8.0.120.0040.00416.80
8.0.110.0030.00516.67
8.0.100.0040.00416.88
8.0.90.0000.00716.84
8.0.80.0130.00816.72
8.0.70.0040.00416.82
8.0.60.0040.00416.80
8.0.50.0070.00016.72
8.0.30.0150.00616.98
8.0.20.0100.00817.16
8.0.10.0070.00016.80
8.0.00.0070.01116.86
7.4.330.0000.00415.55
7.4.320.0060.00016.32
7.4.300.0070.00016.39
7.4.290.0040.00616.39
7.4.280.0040.00416.37
7.4.270.0030.00616.53
7.4.260.0000.00613.21
7.4.250.0060.00316.40
7.4.240.0030.00516.46
7.4.230.0030.00316.32
7.4.220.0030.00316.60
7.4.210.0070.00816.42
7.4.200.0030.00316.55
7.4.130.0140.00916.53
7.4.120.0100.01316.41
7.4.110.0220.00616.23
7.4.100.0230.00716.54
7.4.90.0290.00016.55
7.4.80.0220.00916.34
7.4.70.0230.00616.47
7.4.60.0240.00516.40
7.4.50.0230.00616.46
7.4.40.0290.00916.40
7.4.30.0220.00916.38
7.4.20.0210.01416.49
7.4.10.0210.01516.23
7.4.00.0030.01816.33
7.3.330.0030.00316.12
7.3.320.0030.00313.05
7.3.310.0040.00416.18
7.3.300.0070.00016.18
7.3.290.0100.00516.24
7.3.260.0060.01016.40
7.3.230.0240.01116.50
7.3.220.0250.00516.39
7.3.210.0170.01316.35
7.3.200.0190.01016.20
7.3.190.0270.00316.14
7.3.180.0160.01616.31
7.3.170.0230.01016.23
7.3.160.0240.00916.30
7.3.150.0190.01416.38
7.3.140.0250.01216.14
7.3.130.0220.01416.28
7.3.120.0230.01016.32
7.3.110.0270.01116.50
7.3.100.0250.01216.19
7.3.90.0300.01116.49
7.3.80.0330.00716.24
7.3.70.0190.01816.25
7.3.60.0290.01216.25
7.3.50.0220.01916.14
7.3.40.0330.00416.22
7.3.30.0190.01316.50
7.3.20.0120.00616.23
7.3.10.0170.00916.38
7.3.00.0110.01016.32
7.2.340.0240.00716.57
7.2.330.0250.00516.36
7.2.320.0230.00716.62
7.2.310.0280.00616.44
7.2.300.0190.01416.35
7.2.290.0250.00416.70
7.2.280.0240.01316.58
7.2.270.0250.01116.50
7.2.260.0240.01416.45
7.2.250.0310.00716.54
7.2.240.0270.00916.32
7.2.230.0310.00816.37
7.2.220.0260.01216.34
7.2.210.0240.01116.71
7.2.200.0250.01116.48
7.2.190.0280.01416.39
7.2.180.0270.00916.42
7.2.170.0340.00316.52
7.2.160.0070.01416.38
7.2.150.0170.00816.54
7.2.140.0120.01216.66
7.2.130.0090.01116.62
7.2.120.0030.01716.54
7.2.110.0070.01416.55
7.2.100.0080.01616.69
7.2.90.0140.00616.45
7.2.80.0110.01116.34
7.2.70.0140.00416.46
7.2.60.0320.01416.49
7.2.50.0150.00616.54
7.2.40.0110.01016.48
7.2.30.0110.01116.69
7.2.20.0220.00416.46
7.2.10.0110.01116.41
7.2.00.0190.01116.58

preferences:
67.78 ms | 400 KiB | 5 Q