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, 2, 5));?>

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.40.0070.01418.55
8.3.30.0070.00718.67
8.3.20.0070.00020.09
8.3.10.0030.00523.48
8.3.00.0000.00822.02
8.2.170.0070.01022.96
8.2.160.0000.01419.05
8.2.150.0130.00724.18
8.2.140.0000.01424.66
8.2.130.0060.01221.08
8.2.120.0040.00426.35
8.2.110.0060.00322.07
8.2.100.0080.00317.91
8.2.90.0080.00019.05
8.2.80.0040.00417.97
8.2.70.0050.00317.50
8.2.60.0000.00817.93
8.2.50.0040.00418.10
8.2.40.0000.00820.49
8.2.30.0060.00321.10
8.2.20.0000.00718.05
8.2.10.0000.00817.91
8.2.00.0070.00018.04
8.1.270.0060.00322.15
8.1.260.0040.00426.35
8.1.250.0000.00728.09
8.1.240.0080.00322.74
8.1.230.0080.00317.83
8.1.220.0040.00417.76
8.1.210.0090.00018.77
8.1.200.0000.00817.00
8.1.190.0000.00917.23
8.1.180.0000.00918.10
8.1.170.0080.00018.60
8.1.160.0000.00719.02
8.1.150.0070.00018.81
8.1.140.0040.00419.49
8.1.130.0030.00318.82
8.1.120.0030.00617.30
8.1.110.0070.00017.36
8.1.100.0040.00417.39
8.1.90.0030.00317.37
8.1.80.0080.00017.43
8.1.70.0000.00817.41
8.1.60.0000.00817.43
8.1.50.0080.00017.35
8.1.40.0040.00417.42
8.1.30.0040.00417.61
8.1.20.0030.00517.40
8.1.10.0000.00817.40
8.1.00.0040.00417.38
8.0.300.0000.00718.77
8.0.290.0050.00316.75
8.0.280.0040.00418.36
8.0.270.0040.00417.23
8.0.260.0030.00616.68
8.0.250.0070.00016.96
8.0.240.0050.00316.99
8.0.230.0040.00416.79
8.0.220.0040.00416.68
8.0.210.0080.00016.80
8.0.200.0060.00016.87
8.0.190.0000.00816.92
8.0.180.0040.00416.88
8.0.170.0000.00816.80
8.0.160.0070.00016.89
8.0.150.0000.00716.74
8.0.140.0000.00816.70
8.0.130.0030.00313.34
8.0.120.0000.00716.73
8.0.110.0040.00416.84
8.0.100.0000.00716.71
8.0.90.0080.00016.72
8.0.80.0030.01616.77
8.0.70.0000.00816.80
8.0.60.0000.00816.65
8.0.50.0080.00016.81
8.0.30.0120.00617.03
8.0.20.0100.01017.40
8.0.10.0070.00016.94
8.0.00.0140.00416.73
7.4.330.0050.00015.55
7.4.320.0030.00316.45
7.4.300.0030.00316.35
7.4.290.0070.00016.43
7.4.280.0080.00016.57
7.4.270.0030.00316.40
7.4.260.0030.00316.39
7.4.250.0040.00416.48
7.4.240.0030.00516.55
7.4.230.0000.00716.43
7.4.220.0140.01116.43
7.4.210.0110.00716.61
7.4.200.0040.00416.24
7.4.160.0110.00716.46
7.4.150.0180.00017.40
7.4.140.0080.01417.86
7.4.130.0130.00616.17
7.4.120.0130.00716.48
7.4.110.0150.00316.25
7.4.100.0140.00316.44
7.4.90.0100.00716.30
7.4.80.0080.01119.39
7.4.70.0060.00916.41
7.4.60.0200.00316.44
7.4.50.0040.01416.24
7.4.40.0090.00616.44
7.4.30.0080.01416.41
7.4.00.0000.01414.61
7.3.330.0080.00013.12
7.3.320.0050.00013.02
7.3.310.0000.00815.98
7.3.300.0000.00816.14
7.3.290.0070.00016.16
7.3.280.0090.00816.13
7.3.270.0150.00417.40
7.3.260.0130.00916.30
7.3.250.0090.00916.32
7.3.240.0160.00516.32
7.3.230.0160.00916.47
7.3.210.0140.00316.16
7.3.200.0120.00616.15
7.3.190.0000.01616.41
7.3.180.0030.01316.34
7.3.170.0130.00316.13
7.3.160.0070.01016.36
7.3.00.0060.00916.50
7.2.330.0140.00316.29
7.2.320.0110.00916.33
7.2.310.0120.00616.40
7.2.300.0030.01216.39
7.2.290.0100.00716.58
7.2.130.0070.00716.58
7.2.120.0040.01216.66
7.2.110.0080.00616.80
7.2.100.0080.00416.67
7.2.90.0070.00316.51
7.2.80.0090.00616.43
7.2.70.0030.00716.93
7.2.60.0050.01016.66
7.2.50.0040.01216.85
7.2.40.0060.00316.93
7.2.30.0080.00416.78
7.2.20.0070.00716.62
7.2.10.0090.00616.80
7.2.00.0040.00817.84
7.1.250.0040.00715.70
7.1.240.0000.01715.89
7.1.230.0060.00615.70
7.1.220.0040.00715.53
7.1.210.0100.00315.93
7.1.200.0080.00315.77
7.1.190.0070.00315.63
7.1.180.0030.00915.87
7.1.170.0040.00715.57
7.1.160.0070.00415.57
7.1.150.0030.01015.79
7.1.140.0030.01215.90
7.1.130.0040.00715.71
7.1.120.0090.00315.73
7.1.110.0090.00315.56
7.1.100.0030.00916.87
7.1.90.0080.00615.88
7.1.80.0030.01015.82
7.1.70.0050.00816.36
7.1.60.0090.01425.32
7.1.50.0190.00925.38
7.1.40.0120.01425.01
7.1.30.0170.00824.93
7.1.20.0130.01225.12
7.1.10.0050.00716.05
7.1.00.0040.01016.17
7.0.330.0070.01015.36
7.0.320.0030.01015.50
7.0.310.0110.00315.21
7.0.300.0140.00015.43
7.0.290.0060.00915.32
7.0.280.0000.00915.45
7.0.270.0100.00315.28
7.0.260.0000.01215.30
7.0.250.0090.00615.32
7.0.240.0030.01015.36
7.0.230.0090.00615.43
7.0.220.0030.01015.18
7.0.210.0020.00515.02
7.0.200.0050.00716.17
7.0.190.0070.00815.72
7.0.180.0080.00515.71
7.0.170.0050.01015.71
7.0.160.0080.00315.67
7.0.150.0070.00815.62
7.0.140.0050.00715.80
7.0.130.0060.01115.93
7.0.120.0030.00815.91
7.0.110.0060.00815.82
7.0.100.0080.00515.65
7.0.90.0070.01015.73
7.0.80.0070.00615.83
7.0.70.0030.00715.63
7.0.60.0080.00515.82
7.0.50.0050.00815.74
7.0.40.0030.00914.84
7.0.30.0040.00914.91
7.0.20.0060.00714.90
7.0.10.0050.00714.83
7.0.00.0040.00814.88
5.6.380.0140.00014.31

preferences:
45.07 ms | 400 KiB | 5 Q