3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = array(new stdClass, new stdClass, new stdClass); $array[0]->a = 10; $array[1]->a = 30; $array[2]->a = 20; 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.00418.31
8.3.50.0180.00222.95
8.3.40.0140.00718.67
8.3.30.0070.00719.22
8.3.20.0050.00320.35
8.3.10.0070.00023.54
8.3.00.0000.00819.51
8.2.180.0090.00618.20
8.2.170.0150.00022.96
8.2.160.0110.00420.35
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0080.00021.09
8.2.110.0070.00320.53
8.2.100.0080.00418.22
8.2.90.0000.00819.20
8.2.80.0030.00617.97
8.2.70.0040.00417.63
8.2.60.0040.00417.93
8.2.50.0040.00718.07
8.2.40.0060.00318.34
8.2.30.0050.00318.04
8.2.20.0030.00517.81
8.2.10.0000.00718.15
8.2.00.0030.00617.82
8.1.280.0100.00725.92
8.1.270.0000.00823.88
8.1.260.0000.00726.35
8.1.250.0070.00028.09
8.1.240.0060.00322.19
8.1.230.0080.00419.50
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0060.00317.35
8.1.190.0000.00817.23
8.1.180.0050.00318.10
8.1.170.0000.00818.63
8.1.160.0040.00421.96
8.1.150.0000.00818.93
8.1.140.0070.00017.40
8.1.130.0000.00717.74
8.1.120.0040.00417.42
8.1.110.0070.00017.49
8.1.100.0000.00717.45
8.1.90.0070.00017.44
8.1.80.0000.00717.34
8.1.70.0000.00717.39
8.1.60.0040.00417.47
8.1.50.0060.00317.51
8.1.40.0040.00417.55
8.1.30.0040.00417.63
8.1.20.0040.00417.48
8.1.10.0000.00717.54
8.1.00.0000.00717.53
8.0.300.0040.00418.77
8.0.290.0000.00816.75
8.0.280.0000.00718.45
8.0.270.0000.00717.16
8.0.260.0000.00717.26
8.0.250.0000.00716.89
8.0.240.0000.00717.00
8.0.230.0070.00016.82
8.0.220.0000.00716.89
8.0.210.0000.00816.90
8.0.200.0030.00316.89
8.0.190.0040.00416.86
8.0.180.0050.00216.98
8.0.170.0040.00416.87
8.0.160.0040.00417.00
8.0.150.0000.00716.83
8.0.140.0070.00016.80
8.0.130.0000.00513.31
8.0.120.0000.00816.80
8.0.110.0040.00416.93
8.0.100.0030.00616.77
8.0.90.0030.00316.76
8.0.80.0130.00316.95
8.0.70.0000.00716.83
8.0.60.0000.00816.84
8.0.50.0000.00716.86
8.0.30.0100.01216.94
8.0.20.0160.00717.40
8.0.10.0080.00016.83
8.0.00.0100.00816.89
7.4.330.0050.00015.15
7.4.320.0060.00016.48
7.4.300.0020.00516.52
7.4.290.0030.00316.57
7.4.280.0080.00016.60
7.4.270.0090.00016.50
7.4.260.0000.00716.54
7.4.250.0000.00816.53
7.4.240.0050.00316.40
7.4.230.0030.00316.68
7.4.220.0060.01316.47
7.4.210.0110.00616.61
7.4.200.0030.00316.43
7.4.160.0160.00016.41
7.4.150.0030.01417.40
7.4.140.0100.00717.86
7.4.130.0050.01216.48
7.4.120.0100.00716.43
7.4.110.0110.00516.47
7.4.100.0060.01616.50
7.4.90.0100.00716.43
7.4.80.0120.00619.39
7.4.70.0170.00016.34
7.4.60.0110.00816.45
7.4.50.0050.00016.57
7.4.40.0100.00716.39
7.4.30.0060.00916.66
7.4.00.0110.00414.80
7.3.330.0000.00613.21
7.3.320.0000.00813.05
7.3.310.0030.00316.41
7.3.300.0000.00716.31
7.3.290.0070.00816.24
7.3.280.0070.00916.33
7.3.270.0090.00917.40
7.3.260.0140.00516.32
7.3.250.0080.01216.37
7.3.240.0130.01216.58
7.3.230.0110.00616.41
7.3.210.0200.00316.63
7.3.200.0100.01119.39
7.3.190.0100.01016.35
7.3.180.0130.01216.56
7.3.170.0140.00716.35
7.3.160.0100.01016.42
7.2.330.0080.00916.86
7.2.320.0140.00516.73
7.2.310.0090.00916.80
7.2.300.0030.01416.73
7.2.290.0130.00616.79
7.2.00.0040.01219.52
7.1.100.0090.00617.97
7.1.70.0050.00317.09
7.1.60.0030.01016.96
7.1.50.0030.00917.07
7.1.00.0100.07022.28
7.0.200.0080.00516.82
7.0.140.0030.06722.13
7.0.60.0170.07020.06
7.0.50.0130.07717.80
7.0.40.0070.08720.02
7.0.30.0370.06720.16
7.0.20.0370.07720.17
7.0.10.0100.08720.30
7.0.00.0130.04720.14
5.6.280.0030.07720.82
5.6.210.0070.04020.57
5.6.200.0000.06318.22
5.6.190.0170.06720.39
5.6.180.3500.03320.60
5.6.170.0330.07720.51
5.6.160.0130.06020.49
5.6.150.0200.06318.21
5.6.140.0100.08318.11
5.6.130.0100.08018.18
5.6.120.0100.08021.01
5.6.110.0170.06320.86
5.6.100.0130.08020.89
5.6.90.0170.06021.11
5.6.80.0030.04020.44
5.6.70.3170.03320.39
5.5.350.0070.07720.50
5.5.340.0070.04717.91
5.5.330.0030.04020.57
5.5.320.0300.07720.17
5.5.310.0430.07020.21
5.5.300.0070.08018.00
5.5.290.0030.05017.98
5.5.280.0170.07320.69
5.5.270.0030.08320.77
5.5.260.0000.09020.80
5.5.250.0170.07720.69
5.5.240.0030.07020.24
5.4.450.0300.05019.39
5.4.440.0270.05719.11
5.4.430.0200.03719.58
5.4.420.0300.02719.13
5.4.410.0170.04019.26
5.4.400.0200.03718.91
5.4.390.0300.03719.24
5.4.380.0230.03319.08
5.4.370.0200.03718.90
5.4.360.0170.04018.95
5.4.350.0170.04019.22
5.4.340.0200.04319.21
5.4.320.0270.03719.22
5.4.310.0170.04019.09
5.4.300.0270.04018.80
5.4.290.0230.03318.88
5.4.280.0170.04719.21
5.4.270.0200.03718.93
5.4.260.0130.05018.95
5.4.250.0200.03718.91
5.4.240.0200.03719.23
5.4.230.0130.05018.87
5.4.220.0170.04019.08
5.4.210.0170.06019.15
5.4.200.0370.05319.23
5.4.190.0270.06719.15
5.4.180.0170.06719.21
5.4.170.0230.03718.89
5.4.160.0300.07019.22
5.4.150.0230.06018.91
5.4.140.0400.04716.27
5.4.130.0300.04316.25
5.4.120.0400.06316.59
5.4.110.0330.03316.34
5.4.100.0270.05316.43
5.4.90.0270.06316.21
5.4.80.0430.05716.39
5.4.70.0200.04316.44
5.4.60.0230.03716.37
5.4.50.0300.05016.44
5.4.40.0330.03316.20
5.4.30.0330.03716.43
5.4.20.0300.04316.46
5.4.10.0200.04016.34
5.4.00.0270.06015.61
5.3.290.0170.04014.72
5.3.280.0200.03714.55
5.3.270.0230.04314.49
5.3.260.0230.07314.56
5.3.250.0170.06314.45
5.3.240.0270.04714.59
5.3.230.0330.06014.47
5.3.220.0300.05714.52
5.3.210.0270.07714.45
5.3.200.0200.05314.45
5.3.190.0370.04714.43
5.3.180.0330.04314.62
5.3.170.0330.04714.60
5.3.160.0330.04314.41
5.3.150.0330.05314.43
5.3.140.0370.04014.52
5.3.130.0300.06714.42
5.3.120.0300.04714.52
5.3.110.0230.07314.64
5.3.100.0230.04314.07
5.3.90.0270.05313.87
5.3.80.0270.06713.88
5.3.70.0370.05014.01
5.3.60.0330.05013.89
5.3.50.0270.07013.80
5.3.40.0230.05313.86
5.3.30.0370.06313.88
5.3.20.0230.04713.75
5.3.10.0170.04013.54
5.3.00.0300.07013.59
5.2.170.0270.05711.90
5.2.160.0230.06011.90
5.2.150.0200.03311.90
5.2.140.0270.05711.90
5.2.130.0200.03311.90
5.2.120.0200.03011.90
5.2.110.0170.03011.90
5.2.100.0230.03311.90
5.2.90.0200.03011.90
5.2.80.0270.03711.90
5.2.70.0230.04711.90
5.2.60.0270.04011.90
5.2.50.0230.03711.90
5.2.40.0200.06311.90
5.2.30.0130.04011.90
5.2.20.0200.05711.90
5.2.10.0270.03011.90
5.2.00.0170.02711.90
5.1.60.0200.04711.90
5.1.50.0200.02711.90
5.1.40.0200.04011.90
5.1.30.0300.02311.90
5.1.20.0270.04711.90
5.1.10.0230.04711.90
5.1.00.0170.03011.90
5.0.50.0100.02311.90
5.0.40.0070.02711.90
5.0.30.0130.04011.90
5.0.20.0130.02311.90
5.0.10.0100.02711.90
5.0.00.0170.06011.90
4.4.90.0100.01711.90
4.4.80.0070.02011.90
4.4.70.0100.03711.90
4.4.60.0100.03711.90
4.4.50.0100.02311.90
4.4.40.0070.03311.90
4.4.30.0200.02311.90
4.4.20.0100.03311.90
4.4.10.0030.03711.90
4.4.00.0030.03011.90
4.3.110.0100.03311.90
4.3.100.0130.01311.90
4.3.90.0130.03011.90
4.3.80.0070.03311.90
4.3.70.0130.01711.90
4.3.60.0070.02011.90
4.3.50.0100.02711.90
4.3.40.0130.05011.90
4.3.30.0030.03711.90
4.3.20.0030.02711.90
4.3.10.0070.03311.90
4.3.00.0070.02011.90

preferences:
42.18 ms | 401 KiB | 5 Q