3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = array(new stdClass, new stdClass, new stdClass); for ($i = 0; $i < 3; $i++) { for ($j = 0; $j <= $i; $j++) { $x = $array[$i]; $y = $array[$j]; if ($x < $y) print("$i<$j "); if ($x > $y) print("$i>$j "); if ($x === $y) print("$i===$j "); print(" "); } print("\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.0110.00318.55
8.3.50.0060.01122.93
8.3.40.0100.01018.93
8.3.30.0100.00319.09
8.3.20.0060.00320.31
8.3.10.0040.00423.65
8.3.00.0030.00519.25
8.2.180.0070.01418.42
8.2.170.0200.00022.96
8.2.160.0140.00020.16
8.2.150.0040.00424.18
8.2.140.0000.00724.66
8.2.130.0070.00026.16
8.2.120.0060.00320.95
8.2.110.0080.00020.45
8.2.100.0100.00018.09
8.2.90.0000.00819.30
8.2.80.0040.00417.97
8.2.70.0060.00317.50
8.2.60.0000.00717.93
8.2.50.0080.00418.07
8.2.40.0050.00218.22
8.2.30.0040.00418.02
8.2.20.0000.00817.77
8.2.10.0030.00518.24
8.2.00.0000.00817.64
8.1.280.0120.00325.92
8.1.270.0000.00823.83
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0030.00622.11
8.1.230.0040.00719.04
8.1.220.0000.00917.74
8.1.210.0030.00618.77
8.1.200.0030.00617.23
8.1.190.0050.00316.98
8.1.180.0000.00818.10
8.1.170.0040.00418.48
8.1.160.0000.00822.09
8.1.150.0000.00718.81
8.1.140.0040.00417.42
8.1.130.0030.00317.84
8.1.120.0040.00417.47
8.1.110.0000.00717.46
8.1.100.0040.00417.45
8.1.90.0000.00717.37
8.1.80.0030.00317.43
8.1.70.0070.00017.38
8.1.60.0030.00617.60
8.1.50.0040.00417.50
8.1.40.0000.00717.48
8.1.30.0030.00517.52
8.1.20.0070.00017.72
8.1.10.0000.00817.66
8.1.00.0000.00717.51
8.0.300.0000.00718.77
8.0.290.0020.00516.63
8.0.280.0070.00018.41
8.0.270.0000.00717.18
8.0.260.0000.00617.32
8.0.250.0070.00017.00
8.0.240.0060.00317.01
8.0.230.0030.00316.95
8.0.220.0030.00316.80
8.0.210.0040.00416.96
8.0.200.0030.00317.00
8.0.190.0000.00716.84
8.0.180.0040.00416.97
8.0.170.0080.00016.75
8.0.160.0000.00716.84
8.0.150.0040.00416.84
8.0.140.0040.00416.79
8.0.130.0000.00513.36
8.0.120.0060.00316.91
8.0.110.0080.00016.89
8.0.100.0040.00416.88
8.0.90.0000.00716.73
8.0.80.0100.01016.89
8.0.70.0040.00416.96
8.0.60.0000.00716.77
8.0.50.0040.00416.84
8.0.30.0110.01116.94
8.0.20.0130.00617.40
8.0.10.0040.00416.91
8.0.00.0100.01016.97
7.4.330.0000.00515.09
7.4.320.0000.00716.62
7.4.300.0030.00316.52
7.4.290.0000.00716.62
7.4.280.0030.00516.50
7.4.270.0030.00816.60
7.4.260.0030.00316.49
7.4.250.0050.00316.48
7.4.240.0030.00516.64
7.4.230.0000.00716.45
7.4.220.0080.00816.38
7.4.210.0060.00916.61
7.4.200.0000.00716.41
7.4.160.0030.01216.50
7.4.150.0050.01317.40
7.4.140.0110.00917.86
7.4.130.0090.00916.49
7.4.120.0060.01016.64
7.4.110.0070.01016.53
7.4.100.0140.00416.30
7.4.90.0090.00916.44
7.4.80.0030.02119.39
7.4.70.0070.01016.43
7.4.60.0070.01616.59
7.4.50.0030.00516.61
7.4.40.0100.00616.42
7.4.30.0090.00616.69
7.4.00.0060.00914.66
7.3.330.0030.00313.19
7.3.320.0020.00513.21
7.3.310.0000.00716.46
7.3.300.0030.00316.23
7.3.290.0080.00516.27
7.3.280.0090.00716.27
7.3.270.0170.00017.40
7.3.260.0030.01416.40
7.3.250.0080.01116.45
7.3.240.0130.00816.51
7.3.230.0130.00316.39
7.3.210.0140.01116.27
7.3.200.0060.01819.39
7.3.190.0120.00416.28
7.3.180.0090.00616.25
7.3.170.0170.00616.43
7.3.160.0060.00916.61
7.2.330.0140.00416.47
7.2.320.0140.00716.57
7.2.310.0060.01216.75
7.2.300.0080.00816.31
7.2.290.0130.00316.49
7.2.00.0000.01319.42
7.1.200.0170.00315.54
7.1.100.0000.01018.22
7.1.70.0040.01217.16
7.1.60.0110.01519.46
7.1.50.0070.01816.98
7.1.00.0100.07022.30
7.0.200.0000.00916.95
7.0.140.0100.06021.99
7.0.60.0300.06721.72
7.0.50.0130.07317.81
7.0.40.0070.08020.32
7.0.30.0330.07720.04
7.0.20.0330.06020.09
7.0.10.0100.09020.00
7.0.00.0100.04720.31
5.6.280.0000.07721.06
5.6.210.0130.07320.72
5.6.200.0000.05718.13
5.6.190.0000.04720.77
5.6.180.0330.07020.46
5.6.170.0170.05020.54
5.6.160.0100.07720.35
5.6.150.0070.08318.15
5.6.140.0070.04018.14
5.6.130.0070.05318.20
5.6.120.0030.09021.14
5.6.110.0100.06720.99
5.6.100.0070.07721.04
5.6.90.0070.07021.10
5.6.80.0100.06020.48
5.5.350.0130.03720.44
5.5.340.0000.08317.89
5.5.330.0030.06020.43
5.5.320.0300.07320.20
5.5.310.0300.06720.21
5.5.300.0000.08017.88
5.5.290.0070.08318.02
5.5.280.0070.04020.76
5.5.270.0130.08020.76
5.5.260.0070.08720.76
5.5.250.0170.07720.68
5.5.240.0200.04020.27
5.4.450.2570.03319.47
5.4.440.3430.03719.25
5.4.430.0370.04319.04
5.4.420.2370.05019.17
5.4.410.3570.03318.93
5.4.400.4170.03718.89
5.4.390.5170.03719.10
5.4.380.4000.04019.07
5.4.370.4000.02718.73
5.4.360.4370.04719.13
5.4.350.3730.03719.07
5.4.340.3830.03319.07
5.4.320.4130.03718.73
5.4.310.3930.03719.01
5.4.300.3930.03719.06
5.4.290.4100.03719.09
5.4.280.3970.03318.77
5.4.270.4100.03718.71
5.4.260.4070.03719.05
5.4.250.4570.04018.87
5.4.240.4100.03718.92
5.4.230.4270.04718.73
5.4.220.4500.04019.06
5.4.210.3970.04019.15
5.4.200.4130.02319.06
5.4.190.4230.04019.00
5.4.180.3770.03719.04
5.4.170.3830.04018.76
5.4.160.4300.03718.83
5.4.150.3400.03718.98
5.4.140.4700.03316.42
5.4.130.4270.03716.41
5.4.120.3730.04016.40
5.4.110.3930.03716.15
5.4.100.3600.03716.29
5.4.90.4070.03016.38
5.4.80.3870.03316.35
5.4.70.4130.03316.37
5.4.60.4030.03316.43
5.4.50.4170.03016.41
5.4.40.4170.03016.36
5.4.30.4030.04016.32
5.4.20.4400.03716.36
5.4.10.3830.03716.42
5.4.00.3930.03315.85
5.3.290.3870.04014.59
5.3.280.4100.03714.51
5.3.270.3970.03714.56
5.3.260.4500.03714.55
5.3.250.4300.04014.50
5.3.240.4600.03714.55
5.3.230.4170.03014.61
5.3.220.3630.03714.48
5.3.210.3830.04014.53
5.3.200.3970.03014.48
5.3.190.4030.03714.46
5.3.180.4200.03314.52
5.3.170.3970.03714.50
5.3.160.4470.03314.46
5.3.150.4000.03714.50
5.3.140.4170.03714.49
5.3.130.4030.04014.49
5.3.120.3800.03714.36
5.3.110.4170.04014.42
5.3.100.4200.04313.85
5.3.90.1830.03713.96
5.3.80.1530.03013.98
5.3.70.2030.03314.03
5.3.60.3430.03013.93
5.3.50.1670.03313.87
5.3.40.3170.03713.91
5.3.30.0070.04013.84
5.3.20.0030.03713.63
5.3.10.3470.03313.61
5.3.00.2830.03313.57
5.2.170.1800.03011.09
5.2.160.2030.03011.09
5.2.150.1100.03011.09
5.2.140.0000.03011.10
5.2.130.1730.03310.95
5.2.120.2630.02711.19
5.2.110.1500.03311.08
5.2.100.2830.03010.97
5.2.90.2130.03311.09
5.2.80.3100.03311.09
5.2.70.2330.03311.05
5.2.60.2170.03010.91
5.2.50.2600.03711.03
5.2.40.2500.02010.94
5.2.30.2670.02710.84
5.2.20.3000.03010.90
5.2.10.2900.02710.88
5.2.00.2870.02310.71
5.1.60.3270.03310.04
5.1.50.2430.02010.04
5.1.40.2770.0239.89
5.1.30.2570.02310.32
5.1.20.2730.03010.32
5.1.10.1730.03310.07
5.1.00.0030.03010.04
5.0.50.0070.0178.53
5.0.40.0100.0208.57
5.0.30.0030.0578.28
5.0.20.0000.0308.18
5.0.10.1530.0208.17
5.0.00.1770.0308.21
4.4.90.0800.0135.87
4.4.80.0470.0135.83
4.4.70.1530.0135.81
4.4.60.1530.0205.91
4.4.50.1600.0135.90
4.4.40.1530.0275.83
4.4.30.1230.0175.78
4.4.20.1170.0235.91
4.4.10.0000.0275.90
4.4.00.0000.0375.81
4.3.110.0100.0275.77
4.3.100.0070.0205.71
4.3.90.1000.0175.79
4.3.80.1830.0275.84
4.3.70.1570.0175.70
4.3.60.1870.0175.71
4.3.50.1830.0205.79
4.3.40.1670.0275.78
4.3.30.0900.0175.02
4.3.20.1000.0205.02
4.3.10.0970.0205.02
4.3.00.0930.0175.02

preferences:
39.05 ms | 401 KiB | 5 Q