3v4l.org

run code in 500+ PHP versions simultaneously
<?php class constants { const MAX_VALUE = 10; public const MIN_VALUE =1; } echo constants::MAX_VALUE . PHP_EOL; echo constants::MIN_VALUE;

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.80.0050.00216.86
8.5.70.0130.00516.84
8.5.60.0090.00816.73
8.5.50.0100.00716.69
8.5.30.0110.00721.18
8.5.20.0070.01020.32
8.5.10.0130.00516.66
8.5.00.0130.00819.76
8.4.230.0050.00419.41
8.4.220.0110.00821.27
8.4.210.0150.00621.27
8.4.180.0160.00719.57
8.4.170.0050.00423.75
8.4.160.0160.00723.96
8.4.150.0090.00516.87
8.4.140.0140.00717.71
8.4.130.0110.00117.73
8.4.120.0150.00520.78
8.4.110.0110.00818.75
8.4.100.0120.00817.51
8.4.90.0040.00617.63
8.4.80.0120.00522.48
8.4.70.0140.00519.26
8.4.60.0090.01018.63
8.4.50.0120.00818.97
8.4.40.0080.01118.79
8.4.30.0200.00018.91
8.4.20.0080.00019.69
8.4.10.0130.00619.48
8.3.320.0100.01018.35
8.3.310.0120.01018.36
8.3.300.0120.00822.58
8.3.290.0090.01220.72
8.3.280.0080.00317.02
8.3.270.0100.00916.45
8.3.260.0100.00916.66
8.3.250.0120.00718.36
8.3.240.0110.00916.63
8.3.230.0110.00916.26
8.3.220.0050.00317.17
8.3.210.0070.00616.73
8.3.200.0110.00716.45
8.3.190.0110.00618.88
8.3.180.0100.01016.41
8.3.170.0060.01318.90
8.3.160.0090.00918.32
8.3.150.0100.00317.22
8.3.140.0070.01116.50
8.3.130.0000.00818.49
8.3.120.0130.00718.88
8.3.110.0090.00016.28
8.3.100.0060.00324.06
8.3.90.0160.00026.77
8.3.80.0410.00730.84
8.3.70.0350.01330.84
8.3.60.0360.01130.84
8.3.50.0040.01830.84
8.3.40.0300.00730.84
8.3.30.0320.00430.84
8.3.20.0350.00330.84
8.3.10.0270.01130.84
8.3.00.0310.00430.84
8.2.320.0120.00717.98
8.2.310.0130.00917.98
8.2.300.0120.00817.93
8.2.290.0070.01020.36
8.2.280.0090.00918.13
8.2.270.0120.00616.95
8.2.260.0000.00817.14
8.2.250.0070.01116.63
8.2.240.0030.00617.09
8.2.230.0040.00420.94
8.2.220.0060.00637.54
8.2.210.0030.01326.77
8.2.200.0300.00630.84
8.2.190.0240.00830.84
8.2.180.0330.00330.84
8.2.170.0250.01130.84
8.2.160.0360.00330.84
8.2.150.0310.01030.84
8.2.140.0420.00630.84
8.2.130.0230.01330.84
8.2.120.0260.01930.84
8.2.110.0400.00330.84
8.2.100.0260.01130.84
8.2.90.0160.00330.84
8.2.80.0130.00530.84
8.2.70.0190.00430.84
8.2.60.0210.00030.84
8.2.50.0410.00430.84
8.2.40.0380.01230.84
8.2.30.0420.00330.84
8.2.20.0440.00330.84
8.2.10.0270.01230.84
8.2.00.0330.00630.84
8.1.340.0100.01019.32
8.1.330.0120.00816.45
8.1.320.0100.00915.94
8.1.310.0170.00018.20
8.1.300.0120.00615.79
8.1.290.0250.00330.84
8.1.280.0300.00730.84
8.1.270.0430.00730.84
8.1.260.0310.00630.84
8.1.250.0210.00730.84
8.1.240.0160.00030.84
8.1.230.0220.00730.84
8.1.220.0270.01430.84
8.1.210.0270.01030.84
8.1.200.0330.00430.84
8.1.190.0240.01230.84
8.1.180.0280.01430.84
8.1.170.0280.00930.84
8.1.160.0310.00630.84
8.1.150.0290.01030.84
8.1.140.0280.00930.84
8.1.130.0260.01130.84
8.1.120.0260.01330.84
8.1.110.0340.00730.84
8.1.100.0320.00630.84
8.1.90.0230.01630.84
8.1.80.0240.01430.84
8.1.70.0260.01530.84
8.1.60.0440.00830.84
8.1.50.0310.00630.84
8.1.40.0230.01130.84
8.1.30.0320.01030.84
8.1.20.0330.00630.84
8.1.10.0390.00330.84
8.1.00.0350.00630.84

preferences:
44.7 ms | 1023 KiB | 5 Q