3v4l.org

run code in 300+ PHP versions simultaneously
<?php function bool2str($bool) { if ($bool === false) { return 'FALSE'; } else { return 'TRUE'; } } $o1 = new stdClass(); $o1->prop1 = 'c'; $o1->prop2 = 25; $o1->prop3 = 201; $o1->prop4 = 1000; $o2 = new stdClass(); $o2->prop1 = 'c'; $o2->prop2 = 25; $o2->prop3 = 200; $o2->prop4 = 9999; echo (int)($o1 < $o2); // 0 echo (int)($o1 > $o2); // 1 $o1->prop3 = 200; echo (int)($o1 < $o2); // 1 echo (int)($o1 > $o2); // 0

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.0160.00316.88
8.3.50.0090.00921.99
8.3.40.0110.00418.84
8.3.30.0070.00718.84
8.3.20.0040.00421.96
8.3.10.0060.00323.42
8.3.00.0000.00721.92
8.2.180.0120.00918.16
8.2.170.0110.00422.96
8.2.160.0070.00722.16
8.2.150.0000.00824.18
8.2.140.0000.00824.66
8.2.130.0050.00319.45
8.2.120.0000.00826.35
8.2.110.0070.01020.27
8.2.100.0040.00817.84
8.2.90.0050.00319.14
8.2.80.0050.00219.38
8.2.70.0050.00317.63
8.2.60.0060.00317.93
8.2.50.0040.00418.10
8.2.40.0070.00020.48
8.2.30.0040.00419.25
8.2.20.0000.00817.95
8.2.10.0050.00318.05
8.2.00.0070.00017.57
8.1.280.0070.01425.92
8.1.270.0050.00223.99
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0030.00623.83
8.1.230.0030.00717.83
8.1.220.0050.00317.74
8.1.210.0000.00818.77
8.1.200.0060.00317.38
8.1.190.0000.00817.35
8.1.180.0030.00618.10
8.1.170.0040.00418.65
8.1.160.0000.00818.91
8.1.150.0000.00821.92
8.1.140.0000.00719.51
8.1.130.0000.00819.04
8.1.120.0040.00417.38
8.1.110.0090.00017.35
8.1.100.0040.00417.48
8.1.90.0000.00817.40
8.1.80.0040.00417.36
8.1.70.0000.00717.51
8.1.60.0090.00017.52
8.1.50.0070.00717.53
8.1.40.0040.00417.43
8.1.30.0000.00817.67
8.1.20.0000.00817.68
8.1.10.0040.00417.58
8.1.00.0040.00417.44
8.0.300.0040.00418.77
8.0.290.0000.00816.75
8.0.280.0000.00818.51
8.0.270.0030.00317.18
8.0.260.0030.00317.15
8.0.250.0000.00816.96
8.0.240.0000.00716.93
8.0.230.0030.00316.90
8.0.220.0050.00316.79
8.0.210.0030.00316.79
8.0.200.0000.00616.97
8.0.190.0040.00416.93
8.0.180.0000.00716.97
8.0.170.0050.00316.82
8.0.160.0030.00616.82
8.0.150.0040.00416.84
8.0.140.0000.00716.86
8.0.130.0000.00713.39
8.0.120.0050.00216.82
8.0.110.0070.00016.79
8.0.100.0000.00716.77
8.0.90.0000.00816.98
8.0.80.0080.00816.95
8.0.70.0040.00416.94
8.0.60.0000.00716.80
8.0.50.0000.00716.71
8.0.30.0110.00916.90
8.0.20.0130.00617.40
8.0.10.0000.00717.05
8.0.00.0100.00716.92
7.4.330.0030.00315.55
7.4.320.0030.00316.47
7.4.300.0000.00616.44
7.4.290.0040.00416.67
7.4.280.0050.00516.57
7.4.270.0000.00616.63
7.4.260.0030.00616.50
7.4.250.0000.00716.55
7.4.240.0030.00516.54
7.4.230.0000.00716.64
7.4.220.0150.00316.63
7.4.210.0080.00616.66
7.4.200.0080.00016.71
7.4.160.0120.00316.45
7.4.150.0070.01017.40
7.4.140.0080.01017.86
7.4.130.0100.00916.45
7.4.120.0140.00516.50
7.4.110.0110.01016.61
7.4.100.0120.00916.54
7.4.90.0070.01016.52
7.4.80.0030.01919.39
7.4.70.0080.00816.66
7.4.60.0070.01116.52
7.4.50.0110.00716.27
7.4.40.0140.00316.61
7.4.30.0000.01716.59
7.4.00.0070.01015.07
7.3.330.0000.00513.32
7.3.320.0030.00313.11
7.3.310.0050.00216.48
7.3.300.0040.00416.20
7.3.290.0070.00816.31
7.3.280.0120.00716.30
7.3.270.0130.00317.40
7.3.260.0150.01016.29
7.3.250.0110.00616.46
7.3.240.0150.00516.63
7.3.230.0170.00316.57
7.3.210.0070.01016.63
7.3.200.0060.01216.24
7.3.190.0040.01216.38
7.3.180.0140.00316.62
7.3.170.0030.01316.41
7.3.160.0090.00916.44
7.3.120.0140.00414.72
7.3.110.0100.00715.14
7.3.100.0130.00315.03
7.3.90.0090.00614.96
7.3.80.0080.00414.85
7.3.70.0040.01114.94
7.3.60.0060.00814.74
7.3.50.0030.00614.58
7.3.40.0060.00914.65
7.3.30.0030.01014.78
7.3.20.0030.00916.80
7.3.10.0100.00316.77
7.3.00.0070.00716.63
7.2.330.0140.00616.73
7.2.320.0090.00916.64
7.2.310.0030.01316.74
7.2.300.0070.01116.68
7.2.290.0000.01716.71
7.2.250.0100.01015.25
7.2.240.0170.00314.90
7.2.230.0130.00315.16
7.2.220.0030.01015.02
7.2.210.0040.00815.00
7.2.200.0070.00714.95
7.2.190.0040.00814.97
7.2.180.0030.01015.10
7.2.170.0030.01015.11
7.1.330.0090.00615.74
7.1.320.0100.00015.79
7.1.310.0040.01215.75
7.1.300.0060.00615.65
7.1.290.0030.00615.85
7.1.280.0040.01115.87
7.1.270.0060.00615.54
7.1.260.0000.01415.92
7.1.70.0060.00617.05
7.1.60.0070.00716.95
7.1.10.0170.05322.15
7.1.00.0030.08322.48
7.0.200.0060.01016.46
7.0.150.0100.05721.91
7.0.140.0100.07721.95
7.0.130.0170.04721.82
7.0.120.0100.07021.74
7.0.110.0100.05721.68
7.0.100.0130.06021.85
7.0.90.0000.06721.96
7.0.80.0100.07722.09
7.0.70.0130.05321.85
7.0.60.0030.06021.95
7.0.50.0100.08021.90
7.0.40.0070.08721.86
7.0.30.0170.07721.89
7.0.20.0270.05021.82
7.0.10.0100.05321.92
7.0.00.0100.05321.95

preferences:
57.95 ms | 401 KiB | 5 Q