3v4l.org

run code in 300+ PHP versions simultaneously
<?php # For a more type-safe ==, we have ===. For a more type-safe <, we have… nothing. "123" < "0124", always, no matter what you do. Casting doesn’t help, either. $x = ("123" < "0124") ? "true" : "false"; $y = (int("123") < int("0124")) ? "true" : "false"; echo $x . "\n"; echo $y . "\n";

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.0070.01116.75
8.3.50.0150.00618.18
8.3.40.0100.01018.91
8.3.30.0070.00718.87
8.3.20.0000.00720.30
8.3.10.0040.00421.81
8.3.00.0040.00419.38
8.2.180.0070.01418.29
8.2.170.0140.00322.96
8.2.160.0060.00919.38
8.2.150.0040.00424.18
8.2.140.0070.00724.66
8.2.130.0000.00917.25
8.2.120.0080.00026.35
8.2.110.0130.01019.55
8.2.100.0120.00017.84
8.2.90.0000.00819.09
8.2.80.0030.00617.97
8.2.70.0060.00317.50
8.2.60.0000.00817.80
8.2.50.0050.00318.07
8.2.40.0040.00419.28
8.2.30.0070.00420.69
8.2.20.0090.00317.75
8.2.10.0050.00317.87
8.2.00.0040.00417.87
8.1.280.0070.00725.92
8.1.270.0090.00623.78
8.1.260.0080.00028.09
8.1.250.0040.00428.09
8.1.240.0030.00623.96
8.1.230.0040.00818.98
8.1.220.0050.00317.74
8.1.210.0000.00818.77
8.1.200.0060.00317.22
8.1.190.0040.00417.23
8.1.180.0000.00818.10
8.1.170.0040.00418.70
8.1.160.0050.00321.96
8.1.150.0000.00718.83
8.1.140.0040.00417.38
8.1.130.0000.00717.56
8.1.120.0040.00417.34
8.1.110.0040.00417.48
8.1.100.0000.00817.34
8.1.90.0000.00717.43
8.1.80.0000.00717.43
8.1.70.0070.00017.25
8.1.60.0090.00017.44
8.1.50.0000.00817.52
8.1.40.0040.00417.42
8.1.30.0060.00617.63
8.1.20.0040.00417.56
8.1.10.0040.00417.63
8.1.00.0000.00817.52
8.0.300.0050.00220.29
8.0.290.0070.00016.75
8.0.280.0030.00318.31
8.0.270.0050.00216.80
8.0.260.0000.00917.09
8.0.250.0040.00416.92
8.0.240.0080.00017.00
8.0.230.0050.00216.86
8.0.220.0070.00016.89
8.0.210.0070.00016.83
8.0.200.0060.00016.96
8.0.190.0040.00416.99
8.0.180.0000.00716.96
8.0.170.0070.00016.93
8.0.160.0040.00416.96
8.0.150.0030.00516.96
8.0.140.0000.00716.82
8.0.130.0000.00613.30
8.0.120.0040.00416.85
8.0.110.0040.00416.79
8.0.100.0040.00416.76
8.0.90.0040.00416.72
8.0.80.0070.01416.87
8.0.70.0060.00316.73
8.0.60.0000.00816.90
8.0.50.0000.00716.94
8.0.30.0080.01117.01
8.0.20.0070.01117.40
8.0.10.0070.00016.92
8.0.00.0080.00816.81
7.4.330.0000.00715.08
7.4.320.0000.00716.35
7.4.300.0000.00716.59
7.4.290.0000.00716.51
7.4.280.0040.00416.45
7.4.270.0070.00016.52
7.4.260.0030.00316.58
7.4.250.0040.00416.38
7.4.240.0020.00616.46
7.4.230.0030.00316.70
7.4.220.0140.00416.49
7.4.210.0100.00416.63
7.4.200.0040.00416.63
7.4.160.0150.00016.50
7.4.150.0030.01417.40
7.4.140.0090.01117.86
7.4.130.0220.01216.52
7.4.120.0110.00816.58
7.4.110.0160.00816.39
7.4.100.0160.00816.66
7.4.90.0170.00016.47
7.4.80.0130.00319.39
7.4.70.0100.01016.52
7.4.60.0040.01116.41
7.4.50.0060.01016.74
7.4.40.0060.00916.52
7.4.30.0060.01616.45
7.4.00.0030.00915.14
7.3.330.0000.00513.13
7.3.320.0050.00013.00
7.3.310.0070.00016.11
7.3.300.0030.00316.29
7.3.290.0050.00216.32
7.3.280.0080.00916.32
7.3.270.0130.00717.40
7.3.260.0130.00316.47
7.3.250.0080.01116.41
7.3.240.0100.00616.27
7.3.230.0190.00016.48
7.3.210.0090.00616.35
7.3.200.0060.01216.28
7.3.190.0030.01316.45
7.3.180.0130.00316.36
7.3.170.0100.01016.32
7.3.160.0150.00616.39
7.2.330.0130.01016.32
7.2.320.0100.01316.44
7.2.310.0030.01316.55
7.2.300.0120.00616.42
7.2.290.0120.00816.43
7.2.60.0000.01616.75
7.2.00.0030.00918.82
7.1.200.0030.01115.63
7.1.100.0040.00817.29
7.1.70.0030.00516.71
7.1.60.0060.01619.48
7.1.50.0030.01716.87
7.1.00.0000.08022.44
7.0.200.0180.00414.89
7.0.60.0070.06019.86
7.0.50.0070.09017.67
7.0.40.0000.04720.04
7.0.30.0300.04720.01
7.0.20.0300.04720.17
7.0.10.0070.08319.99
7.0.00.0070.04020.11
5.6.280.0070.06321.10
5.6.210.0070.03720.47
5.6.200.0100.07718.13
5.6.190.0100.04020.43
5.6.180.0370.07020.61
5.6.170.0230.04720.71
5.6.160.0100.05320.51
5.6.150.0070.06718.14
5.6.140.0030.08718.16
5.6.130.0030.07318.22
5.6.120.0200.07721.02
5.6.110.0100.07320.97
5.6.100.0200.07320.97
5.6.90.0030.06020.94
5.6.80.0200.07020.35
5.5.350.0330.06720.48
5.5.340.0170.05318.01
5.5.330.0070.08320.23
5.5.320.0070.07320.21
5.5.310.0070.05020.16
5.5.300.0000.04017.98
5.5.290.0100.08317.91
5.5.280.0030.04720.87
5.5.270.0170.07320.64
5.5.260.0030.06020.86
5.5.250.0070.07320.60
5.5.240.0170.05020.25

preferences:
61.27 ms | 401 KiB | 5 Q