3v4l.org

run code in 500+ PHP versions simultaneously
<?php class X { const A = null; } // ?? works with class constants echo X::A ?? 3; // parse error, invalid syntax //echo X::{A} ?? 3; // quotes are needed, or a global constant const A = 'A'; echo X::{A}; // @ does not hide undefined constants echo @X::{'B'};

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.5.70.0080.01216.86
8.5.60.0090.00816.94
8.5.50.0040.00416.61
8.5.30.0110.00717.98
8.5.20.0110.00520.15
8.5.10.0130.00616.67
8.5.00.0130.00822.71
8.4.220.0070.00421.46
8.4.210.0110.00819.65
8.4.180.0150.00719.70
8.4.170.0100.01123.83
8.4.160.0100.01123.77
8.4.150.0000.00114.05
8.4.140.0120.00917.79
8.4.130.0400.00817.51
8.4.120.0390.00717.63
8.4.110.0260.00317.99
8.4.100.0400.00917.73
8.4.90.0390.01017.80
8.4.80.0410.00917.77
8.4.70.0420.00617.87
8.4.60.0220.00617.95
8.4.50.0320.00317.90
8.4.40.0530.00617.30
8.4.30.0390.01017.43
8.4.20.0420.00917.84
8.4.10.0460.01117.45
8.3.310.0110.01018.57
8.3.300.0050.00419.07
8.3.290.0100.00818.43
8.3.280.0170.00418.29
8.3.270.0100.01016.68
8.3.260.0390.01016.56
8.3.250.0430.00716.71
8.3.240.0450.00416.29
8.3.230.0430.00916.75
8.3.220.0420.00616.45
8.3.210.0320.00916.84
8.3.200.0400.00716.41
8.3.190.0380.01016.40
8.3.180.0250.00416.68
8.3.170.0250.00516.79
8.3.160.0190.00416.47
8.3.150.0200.00416.66
8.3.140.0180.00616.63
8.3.130.0320.00416.50
8.3.120.0200.00816.80
8.3.110.0280.00616.37
8.3.100.0390.00916.41
8.3.90.0400.01016.67
8.3.80.0440.00716.20
8.3.70.0390.00516.51
8.3.60.0310.00716.59
8.3.50.0440.00816.52
8.3.40.0390.01117.62
8.3.30.0310.00717.37
8.3.20.0280.00417.50
8.3.10.0160.00317.50
8.3.00.0150.00517.57
8.2.300.0120.00817.96
8.2.290.0330.00616.54
8.2.280.0250.01116.44
8.2.270.0180.00316.57
8.2.260.0230.00216.50
8.2.250.0250.00616.34
8.2.240.0310.00616.41
8.2.230.0350.00716.31
8.2.220.0310.01216.66
8.2.210.0320.00816.65
8.2.200.0160.00716.75
8.2.190.0180.00616.23
8.2.180.0240.00716.46
8.2.170.0210.00917.76
8.2.160.0350.01017.61
8.2.150.0350.00917.33
8.2.140.0390.00817.38
8.2.130.0370.00817.20
8.2.120.0360.00917.35
8.2.110.0350.01217.48
8.2.100.0360.00917.50
8.2.90.0400.00617.37
8.2.80.0370.00617.55
8.2.70.0300.01417.56
8.2.60.0430.01017.25
8.2.50.0210.00517.45
8.2.40.0390.00917.02
8.2.30.0330.00817.24
8.2.20.0360.00517.28
8.2.10.0330.00517.27
8.2.00.0280.01017.27
8.1.340.0140.00719.84

preferences:
60.75 ms | 869 KiB | 5 Q