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"; echo $x <=> $y; if ($x <=> $y) { echo "TRUE\n\n"; } else { echo "FALSE\n\n"; } $x = "Carrot Juice"; $y = "Carrot"; echo $x <=> $y; 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.60.0040.01118.55
8.3.50.0050.01421.00
8.3.40.0170.00018.66
8.3.30.0070.00718.67
8.3.20.0040.00420.07
8.3.10.0040.00421.72
8.3.00.0040.00419.66
8.2.180.0150.00016.63
8.2.170.0120.00322.96
8.2.160.0070.00720.57
8.2.150.0080.00024.18
8.2.140.0090.00924.66
8.2.130.0040.00426.16
8.2.120.0090.00017.50
8.2.110.0030.00622.13
8.2.100.0090.00317.63
8.2.90.0080.00019.09
8.2.80.0000.00817.97
8.2.70.0040.00417.50
8.2.60.0000.00817.93
8.2.50.0060.00318.07
8.2.40.0040.00421.19
8.2.30.0000.00718.07
8.2.20.0040.00417.65
8.2.10.0050.00218.02
8.2.00.0040.00418.12
8.1.280.0060.00925.92
8.1.270.0140.00720.38
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0090.00022.31
8.1.230.0070.00317.42
8.1.220.0030.00617.74
8.1.210.0040.00418.77
8.1.200.0030.00617.36
8.1.190.0040.00817.23
8.1.180.0000.00818.10
8.1.170.0060.00318.61
8.1.160.0030.00322.16
8.1.150.0040.00418.90
8.1.140.0060.00317.42
8.1.130.0000.00717.75
8.1.120.0040.00417.45
8.1.110.0090.00017.43
8.1.100.0000.00717.38
8.1.90.0000.00717.49
8.1.80.0040.00417.43
8.1.70.0000.00717.55
8.1.60.0000.00917.52
8.1.50.0030.00517.49
8.1.40.0060.00317.45
8.1.30.0030.00517.71
8.1.20.0040.00417.61
8.1.10.0000.00817.48
8.1.00.0040.00417.41
8.0.300.0050.00318.77
8.0.290.0000.00716.75
8.0.280.0030.00318.32
8.0.270.0000.00717.26
8.0.260.0030.00317.15
8.0.250.0040.00416.95
8.0.240.0100.00016.95
8.0.230.0000.00816.87
8.0.220.0030.00616.95
8.0.210.0000.00716.93
8.0.200.0060.00016.95
8.0.190.0000.00716.98
8.0.180.0040.00416.94
8.0.170.0000.00816.88
8.0.160.0000.00716.91
8.0.150.0030.00316.76
8.0.140.0030.00516.83
8.0.130.0000.00613.27
8.0.120.0030.00516.95
8.0.110.0000.00716.86
8.0.100.0040.00416.85
8.0.90.0000.00716.79
8.0.80.0030.01816.84
8.0.70.0040.00416.72
8.0.60.0000.00716.85
8.0.50.0080.00016.73
8.0.30.0130.00716.99
8.0.20.0070.01117.40
8.0.10.0000.00717.01
8.0.00.0100.00916.73
7.4.330.0020.00215.08
7.4.320.0060.00016.50
7.4.300.0000.00716.48
7.4.290.0030.00316.60
7.4.280.0040.00416.59
7.4.270.0000.00716.46
7.4.260.0000.00716.36
7.4.250.0000.00816.39
7.4.240.0060.00216.55
7.4.230.0000.00816.40
7.4.220.0070.01016.40
7.4.210.0080.00616.63
7.4.200.0000.00716.63
7.4.160.0040.01116.61
7.4.150.0090.00917.40
7.4.140.0120.00917.86
7.4.130.0090.00816.42
7.4.120.0130.00816.47
7.4.110.0100.00716.40
7.4.100.0120.00616.35
7.4.90.0160.00416.55
7.4.80.0150.00319.39
7.4.70.0160.00016.34
7.4.60.0060.01016.43
7.4.50.0040.00416.42
7.4.40.0090.01216.62
7.4.30.0120.00816.50
7.4.00.0080.00815.14
7.3.330.0040.00413.09
7.3.320.0000.00513.19
7.3.310.0070.00016.06
7.3.300.0000.00716.21
7.3.290.0000.00716.24
7.3.280.0070.01316.21
7.3.270.0070.01017.40
7.3.260.0100.00716.54
7.3.250.0120.00816.25
7.3.240.0100.01016.46
7.3.230.0060.01316.52
7.3.210.0030.01316.36
7.3.200.0120.00919.39
7.3.190.0060.00916.29
7.3.180.0140.00316.35
7.3.170.0120.00916.30
7.3.160.0060.01016.44
7.3.10.0070.00716.62
7.3.00.0090.00916.72
7.2.330.0080.00916.50
7.2.320.0150.00616.64
7.2.310.0070.01016.65
7.2.300.0100.00716.39
7.2.290.0150.00716.38
7.2.130.0070.01016.67
7.2.120.0110.00316.77
7.2.110.0100.00316.91
7.2.100.0040.00816.60
7.2.90.0030.00916.84
7.2.80.0130.00316.94
7.2.70.0040.00816.74
7.2.60.0050.01016.84
7.2.50.0030.01016.80
7.2.40.0110.00017.06
7.2.30.0090.00616.94
7.2.20.0040.00816.93
7.2.10.0030.01316.85
7.2.00.0020.01417.97
7.1.250.0030.00715.63
7.1.200.0040.00815.85
7.1.100.0110.00517.81
7.1.70.0040.00417.15
7.1.60.0070.01720.03
7.1.50.0070.01016.53
7.1.00.0100.07022.51
7.0.200.0170.00016.77
7.0.60.0000.04319.96
7.0.50.0030.08717.85
7.0.40.0030.07320.03
7.0.30.0270.04320.00
7.0.20.0270.04720.16
7.0.10.0030.04320.12
7.0.00.0030.04320.18
5.6.210.0100.06020.45
5.6.200.0000.04318.15
5.6.190.0070.06720.57
5.6.180.0300.07720.46
5.6.170.0300.08720.62
5.6.160.0130.08020.52
5.6.150.0070.03718.19
5.6.140.0000.08718.27
5.6.130.0000.09018.16
5.6.120.0170.06021.12
5.6.110.0130.08321.01
5.6.100.0030.08721.04
5.6.90.0170.06320.96
5.6.80.0070.07320.39
5.5.350.0070.07320.30
5.5.340.0070.08018.05
5.5.330.0100.08020.19
5.5.320.1430.05020.51
5.5.310.0300.06720.36
5.5.300.0030.03718.07
5.5.290.0130.08018.04
5.5.280.0070.08320.96
5.5.270.0100.07720.72
5.5.260.0030.08020.86
5.5.250.0070.05020.58
5.5.240.0070.07720.23
5.4.450.0370.06319.39
5.4.440.0600.06019.30
5.4.430.0770.06019.69
5.4.420.0470.06019.58
5.4.410.0500.05719.21
5.4.400.0570.05019.26
5.4.390.0670.05718.87
5.4.380.0570.05319.02
5.4.370.0770.05319.16
5.4.360.0770.06319.13
5.4.350.0630.05019.20
5.4.340.0630.06018.98
5.4.320.0700.05319.38
5.4.310.0700.05319.06
5.4.300.0500.05319.01
5.4.290.0170.04719.21
5.4.280.0100.05319.25
5.4.270.0670.04319.23
5.4.260.0570.05318.87
5.4.250.0770.04719.14
5.4.240.0530.06019.22
5.4.230.0600.06019.15
5.4.220.0800.06319.14
5.4.210.0870.05019.23
5.4.200.0730.05316.90
5.4.190.0670.04719.26
5.4.180.0700.05319.23
5.4.170.0570.06719.06
5.4.160.0030.06019.07
5.4.150.0530.06018.97
5.4.140.0470.04716.30
5.4.130.0470.05016.34
5.4.120.0600.06316.75
5.4.110.0600.06316.29
5.4.100.0230.04716.31
5.4.90.0230.05316.70
5.4.80.0330.04716.69
5.4.70.0330.06016.51
5.4.60.0230.05316.50
5.4.50.0170.04716.34
5.4.40.0170.05716.29
5.4.30.0100.05716.27
5.4.20.0100.06016.27
5.4.10.0170.04316.50
5.4.00.0270.04715.74

preferences:
50.13 ms | 401 KiB | 5 Q