3v4l.org

run code in 300+ PHP versions simultaneously
<?php $isAdult = false; $truth = 2 < 3; echo $truth ? 'Yes two is less than three.' : 'NO two is NOT less than three.';?> <li class='<?php echo $isAdult ? "adult" : "child"; ?>'> <?php $array = ['1','2','3', '4', '5', '6']; print_r(array_slice($array, 0, 3));?>

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.0120.00316.13
8.3.50.0070.00716.27
8.3.40.0120.00918.43
8.3.30.0110.00418.38
8.3.20.0000.00720.09
8.3.10.0030.00523.48
8.3.00.0060.00322.12
8.2.180.0140.00416.75
8.2.170.0000.01422.96
8.2.160.0080.00818.91
8.2.150.0140.00024.18
8.2.140.0080.00624.66
8.2.130.0090.00921.07
8.2.120.0070.00026.35
8.2.110.0050.00522.24
8.2.100.0100.00317.72
8.2.90.0040.00419.27
8.2.80.0050.00317.97
8.2.70.0060.00317.63
8.2.60.0040.00418.03
8.2.50.0080.00018.10
8.2.40.0040.00420.61
8.2.30.0000.00821.04
8.2.20.0000.00818.01
8.2.10.0040.00418.00
8.2.00.0070.00017.99
8.1.280.0110.00425.92
8.1.270.0000.00822.19
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0090.00020.95
8.1.230.0040.00817.77
8.1.220.0000.00917.74
8.1.210.0070.00318.77
8.1.200.0070.00317.22
8.1.190.0080.00017.23
8.1.180.0070.00018.10
8.1.170.0000.00818.59
8.1.160.0070.00019.00
8.1.150.0000.00718.72
8.1.140.0040.00419.41
8.1.130.0030.00318.69
8.1.120.0040.00417.32
8.1.110.0000.00817.36
8.1.100.0000.00817.43
8.1.90.0040.00317.24
8.1.80.0070.00017.35
8.1.70.0000.00717.35
8.1.60.0000.00817.39
8.1.50.0040.00417.34
8.1.40.0040.00417.43
8.1.30.0000.00817.53
8.1.20.0040.00417.54
8.1.10.0040.00417.38
8.1.00.0040.00417.34
8.0.300.0040.00418.77
8.0.290.0080.00016.75
8.0.280.0040.00418.37
8.0.270.0000.00717.12
8.0.260.0000.00916.69
8.0.250.0030.00316.96
8.0.240.0040.00416.86
8.0.230.0000.00816.79
8.0.220.0000.00716.79
8.0.210.0040.00416.80
8.0.200.0060.00016.79
8.0.190.0080.00016.85
8.0.180.0050.00316.83
8.0.170.0030.00316.85
8.0.160.0000.00816.71
8.0.150.0030.00316.86
8.0.140.0030.00316.81
8.0.130.0030.00313.20
8.0.120.0040.00416.80
8.0.110.0000.00716.88
8.0.100.0000.00716.81
8.0.90.0040.00416.70
8.0.80.0100.01016.78
8.0.70.0050.00316.68
8.0.60.0000.00816.93
8.0.50.0040.00416.73
8.0.30.0140.00516.99
8.0.20.0120.00817.40
8.0.10.0040.00416.89
8.0.00.0040.01316.86
7.4.330.0050.00015.55
7.4.320.0040.00416.49
7.4.300.0030.00316.41
7.4.290.0040.00416.57
7.4.280.0050.00316.54
7.4.270.0000.00716.38
7.4.260.0070.00016.43
7.4.250.0000.00716.29
7.4.240.0040.00416.43
7.4.230.0020.00516.33
7.4.220.0120.01316.56
7.4.210.0110.00616.58
7.4.200.0000.00716.54
7.4.160.0120.00716.38
7.4.150.0120.00617.40
7.4.140.0110.00917.86
7.4.130.0110.00816.48
7.4.120.0140.00616.39
7.4.110.0140.00716.41
7.4.100.0030.01416.37
7.4.90.0110.00516.33
7.4.80.0110.01219.39
7.4.70.0100.00716.37
7.4.60.0060.01016.56
7.4.50.0090.00316.55
7.4.40.0070.01016.59
7.4.30.0100.00616.46
7.4.00.0060.00614.79
7.3.330.0000.00612.89
7.3.320.0060.00013.00
7.3.310.0000.00816.16
7.3.300.0060.00016.09
7.3.290.0000.00716.13
7.3.280.0080.00816.16
7.3.270.0060.01117.40
7.3.260.0100.01216.38
7.3.250.0110.00716.27
7.3.240.0110.00916.20
7.3.230.0060.01116.08
7.3.210.0050.01116.38
7.3.200.0070.01116.15
7.3.190.0080.00816.18
7.3.180.0090.00616.46
7.3.170.0160.00016.52
7.3.160.0060.00916.34
7.3.10.0030.01016.35
7.3.00.0080.00816.54
7.2.330.0070.01116.57
7.2.320.0130.01016.21
7.2.310.0130.01016.34
7.2.300.0100.00616.38
7.2.290.0120.01116.55
7.2.130.0040.01216.88
7.2.120.0000.01416.71
7.2.110.0110.00416.76
7.2.100.0130.00316.46
7.2.90.0030.00916.98
7.2.80.0080.00416.86
7.2.70.0060.01016.93
7.2.60.0060.00816.85
7.2.50.0000.01216.61
7.2.40.0040.01116.90
7.2.30.0030.01016.78
7.2.20.0030.00916.86
7.2.10.0070.00716.79
7.2.00.0060.00618.06
7.1.250.0110.00015.97
7.1.200.0060.00615.75
7.1.100.0070.01018.19
7.1.70.0080.00817.05
7.1.60.0180.01334.99
7.1.50.0130.01634.90
7.1.40.0160.01334.27
7.1.30.0260.01034.65
7.1.20.0330.01134.60
7.1.10.0070.00716.30
7.1.00.0140.00016.75
7.0.200.0110.00316.46
7.0.190.0060.00616.71
7.0.180.0030.01016.24
7.0.170.0030.01116.05
7.0.160.0070.01316.30
7.0.150.0070.01416.21
7.0.140.0000.01416.13
7.0.130.0070.00716.33
7.0.120.0040.01116.26
7.0.110.0090.00616.17
7.0.100.0030.01016.21
7.0.90.0050.00816.14
7.0.80.0070.00716.30
7.0.70.0030.01016.33
7.0.60.0100.00316.05
7.0.50.0000.01416.13
7.0.40.0070.00716.38
7.0.30.0030.01016.42
7.0.20.0110.00416.28
7.0.10.0100.00316.40
7.0.00.0030.01016.33

preferences:
42.05 ms | 401 KiB | 5 Q