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"; ?>'> $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.40.0120.00318.67
8.3.30.0120.00618.50
8.3.20.0080.00020.26
8.3.10.0050.00323.66
8.3.00.0040.00422.04
8.2.170.0110.00422.96
8.2.160.0080.00818.96
8.2.150.0060.00924.18
8.2.140.0040.00424.66
8.2.130.0040.00421.19
8.2.120.0050.00326.35
8.2.110.0070.01122.29
8.2.100.0040.00717.72
8.2.90.0040.00418.22
8.2.80.0040.00417.97
8.2.70.0030.00517.50
8.2.60.0050.00317.91
8.2.50.0030.00618.10
8.2.40.0040.00420.59
8.2.30.0060.00320.91
8.2.20.0080.00017.96
8.2.10.0040.00417.98
8.2.00.0070.00018.02
8.1.270.0040.00422.01
8.1.260.0050.00226.35
8.1.250.0040.00428.09
8.1.240.0070.00322.20
8.1.230.0090.00321.03
8.1.220.0040.00417.74
8.1.210.0000.00818.77
8.1.200.0060.00317.35
8.1.190.0030.00617.10
8.1.180.0050.00218.10
8.1.170.0040.00418.58
8.1.160.0050.00318.95
8.1.150.0040.00418.81
8.1.140.0040.00419.50
8.1.130.0030.00318.81
8.1.120.0030.00517.38
8.1.110.0030.00517.24
8.1.100.0070.00017.36
8.1.90.0040.00417.29
8.1.80.0030.00317.27
8.1.70.0030.00517.39
8.1.60.0030.00617.48
8.1.50.0080.00017.45
8.1.40.0080.00017.45
8.1.30.0040.00417.55
8.1.20.0060.00317.53
8.1.10.0000.00917.46
8.1.00.0020.00517.32
8.0.300.0000.00720.16
8.0.290.0080.00016.75
8.0.280.0040.00418.43
8.0.270.0050.00217.18
8.0.260.0060.00316.81
8.0.250.0000.00716.83
8.0.240.0030.00616.95
8.0.230.0040.00416.90
8.0.220.0070.00016.80
8.0.210.0000.00716.76
8.0.200.0000.00716.82
8.0.190.0000.00816.74
8.0.180.0000.00816.72
8.0.170.0040.00416.70
8.0.160.0000.00716.79
8.0.150.0030.00516.68
8.0.140.0040.00416.75
8.0.130.0030.00313.27
8.0.120.0030.00316.66
8.0.110.0070.00016.87
8.0.100.0030.00316.80
8.0.90.0040.00416.83
8.0.80.0080.01416.77
8.0.70.0040.00416.75
8.0.60.0000.00816.76
8.0.50.0000.00716.74
8.0.30.0100.00716.85
8.0.20.0100.00817.40
8.0.10.0000.00816.81
8.0.00.0040.01516.70
7.4.330.0050.00015.55
7.4.320.0000.00716.47
7.4.300.0030.00316.43
7.4.290.0000.00716.33
7.4.280.0000.00716.42
7.4.270.0050.00216.52
7.4.260.0000.00716.35
7.4.250.0070.00016.31
7.4.240.0080.00016.51
7.4.230.0070.00016.34
7.4.220.0150.01216.54
7.4.210.0060.00816.44
7.4.200.0040.00416.41
7.4.160.0100.00916.43
7.4.150.0060.01117.40
7.4.140.0130.00817.86
7.4.130.0100.01016.43
7.4.120.0090.00916.37
7.4.110.0070.01016.29
7.4.100.0080.00816.48
7.4.90.0030.01716.40
7.4.80.0190.00319.39
7.4.70.0080.00816.31
7.4.60.0060.01216.45
7.4.50.0000.01716.61
7.4.40.0070.01016.32
7.4.30.0110.00616.39
7.4.00.0060.00614.79
7.3.330.0000.00712.89
7.3.320.0020.00213.07
7.3.310.0080.00016.06
7.3.300.0040.00416.14
7.3.290.0000.00715.96
7.3.280.0080.01016.14
7.3.270.0060.01117.40
7.3.260.0090.00916.23
7.3.250.0100.00716.12
7.3.240.0140.00616.46
7.3.230.0090.01216.45
7.3.210.0130.00316.40
7.3.200.0060.01016.20
7.3.190.0060.01016.26
7.3.180.0060.01016.52
7.3.170.0060.00916.17
7.3.160.0090.00616.05
7.2.330.0120.00616.55
7.2.320.0140.01016.32
7.2.310.0060.01016.57
7.2.300.0200.00016.29
7.2.290.0060.01716.31
7.2.60.0030.01216.91
7.2.00.0030.00719.30
7.1.200.0030.00715.66
7.1.100.0070.01417.87
7.1.70.0040.00916.91
7.1.60.0100.01734.94
7.1.50.0190.01034.62
7.1.40.0220.00634.17
7.1.30.0140.01434.30
7.1.20.0190.01334.36
7.1.10.0060.00616.43
7.1.00.0070.00716.42
7.0.200.0080.00616.77
7.0.190.0030.01016.50
7.0.180.0070.00716.07
7.0.170.0070.00716.05
7.0.160.0090.00316.29
7.0.150.0000.01316.07
7.0.140.0080.00516.07
7.0.130.0060.00616.36
7.0.120.0060.00616.35
7.0.110.0060.00616.26
7.0.100.0000.01216.33
7.0.90.0060.00616.25
7.0.80.0060.00616.19
7.0.70.0060.00616.24
7.0.60.0030.01016.04
7.0.50.0030.01016.45
7.0.40.0070.00716.58
7.0.30.0030.01016.33
7.0.20.0030.01016.31
7.0.10.0100.00316.48
7.0.00.0030.01016.11

preferences:
49.29 ms | 400 KiB | 5 Q