3v4l.org

run code in 300+ PHP versions simultaneously
<?php $x = 0; $y = 1; if ($x <=> $y) { echo "TRUE\n\n"; } else { echo "FALSE\n\n"; } $x = "Carrot"; $y = "Carrot Juice"; if ($x <=> $y) { echo "TRUE\n\n"; } else { echo "FALSE\n\n"; } $x = "Carrot Juice"; $y = "Carrot"; if ($x <=> $y) { echo "TRUE\n\n"; } else { echo "FALSE\n\n"; } $x = array("carrot", "juice"); $y = "carrot juice"; if ($x <=> $y) { echo "TRUE\n\n"; } else { echo "FALSE\n\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.70.0120.00916.46
8.3.60.0120.00618.56
8.3.50.0090.01121.10
8.3.40.0150.00018.43
8.3.30.0060.00918.47
8.3.20.0040.00420.29
8.3.10.0080.00021.85
8.3.00.0050.00319.54
8.2.180.0090.00618.16
8.2.170.0120.00622.96
8.2.160.0000.01320.39
8.2.150.0040.00424.18
8.2.140.0140.00324.66
8.2.130.0040.00426.16
8.2.120.0040.00420.63
8.2.110.0090.00022.25
8.2.100.0120.00017.72
8.2.90.0000.00718.03
8.2.80.0080.00019.16
8.2.70.0060.00317.93
8.2.60.0070.00318.03
8.2.50.0040.00418.10
8.2.40.0040.00419.38
8.2.30.0020.00517.99
8.2.20.0000.00817.55
8.2.10.0000.00818.05
8.2.00.0040.00417.91
8.1.280.0150.00025.92
8.1.270.0000.00820.26
8.1.260.0030.00626.35
8.1.250.0040.00428.09
8.1.240.0080.00022.03
8.1.230.0040.00720.97
8.1.220.0080.00017.76
8.1.210.0000.00818.77
8.1.200.0100.00017.23
8.1.190.0040.00418.91
8.1.180.0040.00418.10
8.1.170.0040.00418.65
8.1.160.0050.00218.75
8.1.150.0050.00218.79
8.1.140.0050.00317.54
8.1.130.0030.00317.74
8.1.120.0040.00417.39
8.1.110.0050.00617.48
8.1.100.0040.00417.46
8.1.90.0050.00317.48
8.1.80.0050.00317.33
8.1.70.0000.00817.46
8.1.60.0040.00417.59
8.1.50.0040.00417.53
8.1.40.0000.00817.44
8.1.30.0040.00417.69
8.1.20.0000.00717.68
8.1.10.0070.00017.46
8.1.00.0030.00617.44
8.0.300.0040.00420.09
8.0.290.0000.00916.75
8.0.280.0070.00018.45
8.0.270.0040.00417.29
8.0.260.0030.00317.16
8.0.250.0070.00016.84
8.0.240.0060.00316.84
8.0.230.0030.00316.87
8.0.220.0000.00716.78
8.0.210.0000.00716.86
8.0.200.0060.00016.92
8.0.190.0000.00816.98
8.0.180.0000.00716.84
8.0.170.0080.00016.78
8.0.160.0070.00016.78
8.0.150.0070.00016.88
8.0.140.0070.00016.70
8.0.130.0030.00313.26
8.0.120.0030.00516.73
8.0.110.0020.00516.75
8.0.100.0040.00416.78
8.0.90.0000.00716.71
8.0.80.0000.02116.86
8.0.70.0040.00416.72
8.0.60.0000.00716.79
8.0.50.0050.00216.78
8.0.30.0110.00616.95
8.0.20.0140.00517.40
8.0.10.0070.00017.00
8.0.00.0090.01216.77
7.4.330.0050.00015.20
7.4.320.0030.00316.48
7.4.300.0060.00016.57
7.4.290.0040.00416.60
7.4.280.0050.00216.54
7.4.270.0030.00316.58
7.4.260.0030.00316.43
7.4.250.0000.00716.56
7.4.240.0030.00316.48
7.4.230.0030.00616.62
7.4.220.0030.01516.49
7.4.210.0050.01116.63
7.4.200.0040.00416.40
7.4.160.0100.00616.52
7.4.150.0090.00917.40
7.4.140.0090.00917.86
7.4.130.0160.00416.46
7.4.120.0120.01116.52
7.4.110.0130.00316.36
7.4.100.0070.01516.47
7.4.90.0140.00316.55
7.4.80.0120.00819.39
7.4.70.0120.00616.43
7.4.60.0080.00816.58
7.4.50.0030.00316.34
7.4.40.0070.01016.48
7.4.30.0120.01016.50
7.4.00.0080.00815.13
7.3.330.0060.00013.02
7.3.320.0020.00213.07
7.3.310.0000.00616.33
7.3.300.0030.00316.09
7.3.290.0030.00316.23
7.3.280.0080.00816.22
7.3.270.0030.01417.40
7.3.260.0120.01216.23
7.3.250.0130.00516.30
7.3.240.0130.00316.23
7.3.230.0120.00916.45
7.3.210.0130.00316.65
7.3.200.0120.00919.39
7.3.190.0080.00816.21
7.3.180.0070.01316.37
7.3.170.0100.00616.27
7.3.160.0030.01616.17
7.3.10.0030.01016.39
7.3.00.0070.00716.23
7.2.330.0100.00716.45
7.2.320.0060.01116.35
7.2.310.0110.01116.42
7.2.300.0070.01116.70
7.2.290.0190.00416.68
7.2.130.0100.00616.32
7.2.120.0100.00716.55
7.2.110.0130.00316.38
7.2.100.0030.00916.29
7.2.90.0200.00316.61
7.2.80.0090.00316.20
7.2.70.0060.00616.62
7.2.60.0030.01316.71
7.2.50.0120.00616.69
7.2.40.0070.01416.39
7.2.30.0110.00716.39
7.2.20.0070.01016.66
7.2.10.0040.01416.52
7.2.00.0070.00918.07
7.1.250.0070.00715.34
7.1.200.0110.00415.34
7.1.100.0060.00917.85
7.1.70.0030.00517.14
7.1.60.0140.01020.03
7.1.50.0040.01416.86
7.1.00.0030.07722.43
7.0.200.0000.01016.82
7.0.60.0230.06719.89
7.0.50.0070.07017.80
7.0.40.0130.08020.21
7.0.30.0500.07020.30
7.0.20.0300.05020.18
7.0.10.0070.06020.17
7.0.00.0070.04720.16
5.6.280.0070.06020.82
5.6.210.0070.05720.46
5.6.200.0030.08318.29
5.6.190.0070.04020.56
5.6.180.0470.04720.48
5.6.170.0230.04320.57
5.6.160.0100.08320.52
5.6.150.0000.04318.15
5.6.140.0070.04018.18
5.6.130.0100.07018.23
5.6.120.0170.06721.10
5.6.110.0030.04021.00
5.6.100.0070.08320.93
5.6.90.0100.08320.87
5.6.80.0130.07020.34
5.5.350.0100.07320.49
5.5.340.0030.05318.01
5.5.330.0130.07720.43
5.5.320.2700.04320.30
5.5.310.0330.04020.27
5.5.300.0070.08017.97
5.5.290.0000.06018.07
5.5.280.0070.08720.87
5.5.270.0100.05020.77
5.5.260.0130.05720.73
5.5.250.0100.05020.70
5.5.240.0070.07320.15
5.4.450.0730.05719.46
5.4.440.0570.06019.38
5.4.430.0700.07319.61
5.4.420.0700.04719.70
5.4.410.0630.05019.37
5.4.400.0700.07319.25
5.4.390.0570.05719.15
5.4.380.0600.05319.15
5.4.370.0630.04719.27
5.4.360.0770.05719.15
5.4.350.0830.04719.15
5.4.340.0800.05318.89
5.4.320.0700.05719.29
5.4.310.0600.05719.30
5.4.300.0700.05019.25
5.4.290.0770.06319.15
5.4.280.0800.04319.37
5.4.270.0800.06019.25
5.4.260.0600.06019.22
5.4.250.0730.05719.05
5.4.240.0700.06319.25
5.4.230.0730.05018.87
5.4.220.0730.05719.15
5.4.210.0770.04718.99
5.4.200.0500.05716.84
5.4.190.0800.05719.11
5.4.180.0670.05718.93
5.4.170.0670.06319.33
5.4.160.0830.03719.32
5.4.150.0730.04718.84
5.4.140.0630.06316.36
5.4.130.0670.05016.54
5.4.120.0730.05016.30
5.4.110.0600.05016.53
5.4.100.0930.05316.52
5.4.90.0870.04716.37
5.4.80.0830.05016.38
5.4.70.0830.05016.36
5.4.60.0770.04716.36
5.4.50.0770.04716.46
5.4.40.0530.05716.34
5.4.30.0770.05716.25
5.4.20.0930.06716.39
5.4.10.0530.05316.51
5.4.00.0430.06316.02

preferences:
26.41 ms | 401 KiB | 5 Q