3v4l.org

run code in 300+ PHP versions simultaneously
<?php assert('3' < '10'); // Numeric comparison. 2 < 12. assert('10' < '2 '); // Lexicographical comparison // Circular: assert('2 ' < '3'); // Lexicographical comparison // Not transitive: assert(!('3' < '2 ')); // Lexicographical comparison // And just because it's interesting: assert('2 ' < 3); // Numeric comparison. 2 < 3.

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.10.0100.00720.18
8.5.00.0120.01020.05
8.4.150.0030.00014.05
8.4.140.0120.00917.71
8.4.130.0090.01017.84
8.4.120.0120.00420.46
8.4.110.0160.00618.59
8.4.100.0060.00517.76
8.4.90.0130.00717.54
8.4.80.0040.00417.93
8.4.70.0130.00917.84
8.4.60.0070.00318.58
8.4.50.0120.00918.93
8.4.40.0150.00420.64
8.4.30.0100.00717.49
8.4.20.0100.01017.70
8.4.10.0130.00317.80
8.3.280.0090.01218.54
8.3.270.0090.01016.56
8.3.260.0110.00816.48
8.3.250.0110.00818.89
8.3.240.0100.01016.55
8.3.230.0110.00916.57
8.3.220.0070.00117.04
8.3.210.0090.00916.53
8.3.200.0030.00516.53
8.3.190.0140.00918.92
8.3.180.0120.00818.30
8.3.170.0110.00716.30
8.3.160.0080.01118.53
8.3.150.0100.01017.09
8.3.140.0050.00316.65
8.3.130.0040.00416.69
8.3.120.0090.00020.54
8.3.110.0060.00318.34
8.3.100.0100.00716.78
8.3.90.0160.00426.77
8.3.80.0060.00316.38
8.3.70.0150.00416.58
8.3.60.0110.00418.55
8.3.50.0120.00722.00
8.3.40.0090.01218.83
8.3.30.0100.00718.89
8.3.20.0040.00420.34
8.3.10.0050.00323.70
8.3.00.0050.00319.38
8.2.290.0060.00218.79
8.2.280.0120.00718.44
8.2.270.0090.00916.87
8.2.260.0090.00917.29
8.2.250.0060.01218.59
8.2.240.0070.00720.47
8.2.230.0060.00320.94
8.2.220.0040.00424.06
8.2.210.0040.00426.77
8.2.200.0090.00018.29
8.2.190.0040.01116.61
8.2.180.0000.01525.92
8.2.170.0120.00318.92
8.2.160.0100.00722.96
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0070.00022.13
8.2.120.0070.00026.35
8.2.110.0030.01321.98
8.2.100.0060.00617.70
8.2.90.0080.00018.22
8.2.80.0000.00817.97
8.2.70.0030.00517.63
8.2.60.0040.00417.91
8.2.50.0030.00618.10
8.2.40.0000.00920.64
8.2.30.0050.00219.29
8.2.20.0070.00017.56
8.2.10.0070.00018.05
8.2.00.0000.00717.90
8.1.330.0120.00616.00
8.1.320.0080.00716.18
8.1.310.0140.00416.38
8.1.300.0090.00018.29
8.1.290.0030.01330.84
8.1.280.0110.00725.92
8.1.270.0050.00323.79
8.1.260.0080.00028.09
8.1.250.0040.00428.09
8.1.240.0060.00324.00
8.1.230.0050.00521.03
8.1.220.0060.00317.74
8.1.210.0050.00318.77
8.1.200.0060.00317.36
8.1.190.0050.00317.10
8.1.180.0030.00618.10
8.1.170.0030.00618.52
8.1.160.0040.00420.83
8.1.150.0000.00818.82
8.1.140.0040.00419.38
8.1.130.0000.00717.57
8.1.120.0070.00317.23
8.1.110.0080.00017.35
8.1.100.0030.00417.25
8.1.90.0050.00317.18
8.1.80.0040.00417.24
8.1.70.0000.00717.23
8.1.60.0030.00917.53
8.1.50.0060.00317.41
8.1.40.0000.00817.40
8.1.30.0030.00617.42
8.1.20.0040.00417.58
8.1.10.0030.00517.51
8.1.00.0000.00817.49
8.0.300.0040.00420.09
8.0.290.0080.00016.75
8.0.280.0000.00718.36
8.0.270.0030.00316.75
8.0.260.0000.00617.20
8.0.250.0030.00316.93
8.0.240.0000.00716.96
8.0.230.0040.00416.94
8.0.220.0080.00016.82
8.0.210.0050.00316.84
8.0.200.0000.00716.91
8.0.190.0050.00316.97
8.0.180.0000.00716.88
8.0.170.0060.00316.83
8.0.160.0030.00316.72
8.0.150.0030.00416.91
8.0.140.0070.00016.86
8.0.130.0030.00313.30
8.0.120.0040.00416.85
8.0.110.0020.00516.90
8.0.100.0070.00016.83
8.0.90.0000.00816.84
8.0.80.0140.00716.95
8.0.70.0040.00416.87
8.0.60.0070.00016.95
8.0.50.0040.00416.80
8.0.30.0100.00616.93
8.0.20.0130.00717.40
8.0.10.0000.00716.91
8.0.00.0060.01216.98
7.4.330.0060.00015.08
7.4.320.0070.00016.28
7.4.300.0030.00316.32
7.4.290.0110.00016.35
7.4.280.0090.00016.36
7.4.270.0070.00016.49
7.4.260.0060.00616.35
7.4.250.0030.00316.47
7.4.240.0000.00716.38
7.4.230.0050.00316.44
7.4.220.0070.01016.55
7.4.210.0060.00816.55
7.4.200.0000.00716.25
7.4.160.0030.01316.50
7.4.150.0070.01017.40
7.4.140.0130.00317.86
7.4.130.0110.00616.40
7.4.120.0120.00516.40
7.4.110.0090.00916.27
7.4.100.0090.01216.32
7.4.90.0050.01116.45
7.4.80.0200.00419.39
7.4.70.0070.01016.49
7.4.60.0130.00316.34
7.4.50.0060.01016.61
7.4.40.0030.01516.38
7.4.30.0080.00816.44
7.4.00.0070.00714.83
7.3.330.0000.00613.09
7.3.320.0030.00313.00
7.3.310.0000.00816.18
7.3.300.0030.00316.29
7.3.290.0000.00716.23
7.3.280.0070.01116.28
7.3.270.0100.00617.40
7.3.260.0100.00716.24
7.3.250.0110.00816.22
7.3.240.0090.00816.34
7.3.230.0060.01016.39
7.3.210.0150.00316.43
7.3.200.0070.01016.47
7.3.190.0130.00616.17
7.3.180.0090.00916.17
7.3.170.0090.00616.20
7.3.160.0100.00716.40
7.2.330.0150.00316.64
7.2.320.0100.00916.48
7.2.310.0150.00316.36
7.2.300.0080.00816.49
7.2.290.0130.00316.25
7.2.60.0120.00616.83
7.2.00.0090.00618.97
7.1.200.0040.00815.80
7.1.100.0000.01517.95
7.1.70.0040.00717.08
7.1.60.0100.01019.90
7.1.50.0090.01216.73
7.1.00.0030.07722.46
7.0.200.0040.00416.40
7.0.80.0330.06020.01
7.0.70.0070.06320.02
7.0.60.0100.05720.01
7.0.50.0270.04720.35
7.0.40.0070.06320.30
7.0.30.0170.05720.23
7.0.20.0070.06320.31
7.0.10.0100.06020.30
7.0.00.0070.06320.30
5.6.280.0030.07021.09
5.6.230.0200.07320.55
5.6.220.0030.07020.73
5.6.210.0170.05720.57
5.6.200.0170.05721.18
5.6.190.0100.08321.07
5.6.180.0100.06021.12
5.6.170.0270.06021.02
5.6.160.0170.05321.09
5.6.150.0130.05721.02
5.6.140.0100.07021.02
5.6.130.0170.05721.10
5.6.120.0130.06021.08
5.6.110.0130.06021.07
5.6.100.0030.06721.09
5.6.90.0400.06021.04
5.6.80.0070.06320.45
5.6.70.0070.06320.39
5.6.60.0100.05720.45
5.6.50.0100.05720.48
5.6.40.0130.05320.37
5.6.30.0100.05320.55
5.6.20.0200.05020.37
5.6.10.0100.05720.36
5.6.00.0130.05320.52
5.5.370.0070.06320.42
5.5.360.0170.05720.41
5.5.350.0130.07320.48
5.5.340.0100.06020.96
5.5.330.0170.05320.71
5.5.320.0200.05320.92
5.5.310.0100.06320.88
5.5.300.0300.04720.83
5.5.290.0130.06020.95
5.5.280.0100.06320.77
5.5.270.0130.06320.87
5.5.260.0130.05720.87
5.5.250.0270.06720.78
5.5.240.0070.05720.31
5.5.230.0200.05020.32
5.5.220.0200.04720.31
5.5.210.0070.06020.15
5.5.200.0070.05720.23
5.5.190.0130.05320.32
5.5.180.0100.05720.29
5.5.160.0130.05020.28
5.5.150.0030.06020.20
5.5.140.0170.05320.27
5.5.130.0200.04720.11
5.5.120.0130.05320.23
5.5.110.0200.05020.27
5.5.100.0170.05020.23
5.5.90.0200.04320.13
5.5.80.0070.05720.09
5.5.70.0170.05020.09
5.5.60.0100.05719.99
5.5.50.0100.05320.09
5.5.40.0200.04319.99
5.5.30.0170.05020.19
5.5.20.0170.06020.09
5.5.10.0200.04720.14
5.5.00.0170.04720.18

preferences:
157.29 ms | 403 KiB | 5 Q