3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = "\n"; if (ord($str) == 10) { echo "The first character of \$str is a line feed.\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.0090.00916.49
8.3.50.0130.00521.93
8.3.40.0070.01418.71
8.3.30.0060.01318.42
8.3.20.0080.00020.39
8.3.10.0040.00420.35
8.3.00.0070.00020.52
8.2.180.0070.01016.50
8.2.170.0070.00722.96
8.2.160.0030.01320.47
8.2.150.0000.00824.18
8.2.140.0080.00024.66
8.2.130.0060.00319.36
8.2.120.0050.00326.35
8.2.110.0040.00422.14
8.2.100.0090.00317.63
8.2.90.0040.00419.11
8.2.80.0040.00417.97
8.2.70.0060.00317.50
8.2.60.0060.00317.80
8.2.50.0030.00618.10
8.2.40.0100.00020.55
8.2.30.0040.00421.06
8.2.20.0000.00817.65
8.2.10.0070.00018.00
8.2.00.0050.00217.95
8.1.280.0130.00325.92
8.1.270.0000.00723.91
8.1.260.0000.00728.09
8.1.250.0080.00028.09
8.1.240.0090.00023.98
8.1.230.0040.00817.79
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0090.00017.36
8.1.190.0000.00917.23
8.1.180.0040.00418.10
8.1.170.0040.00418.68
8.1.160.0000.00720.86
8.1.150.0000.00718.81
8.1.140.0040.00419.54
8.1.130.0000.00717.61
8.1.120.0030.00317.37
8.1.110.0030.00617.48
8.1.100.0040.00417.45
8.1.90.0040.00417.30
8.1.80.0000.00717.48
8.1.70.0000.00717.46
8.1.60.0040.00417.57
8.1.50.0050.00317.44
8.1.40.0040.00417.50
8.1.30.0000.00817.60
8.1.20.0070.00017.59
8.1.10.0040.00417.51
8.1.00.0000.00717.50
8.0.300.0060.00318.77
8.0.290.0040.00416.75
8.0.280.0000.00718.45
8.0.270.0000.01017.20
8.0.260.0040.00417.11
8.0.250.0070.00016.92
8.0.240.0030.00316.93
8.0.230.0030.00316.87
8.0.220.0040.00416.86
8.0.210.0030.00316.81
8.0.200.0030.00316.84
8.0.190.0030.00316.88
8.0.180.0000.00816.87
8.0.170.0000.00716.75
8.0.160.0040.00416.76
8.0.150.0030.00316.78
8.0.140.0060.00316.78
8.0.130.0030.00313.34
8.0.120.0000.00716.77
8.0.110.0040.00416.80
8.0.100.0040.00416.78
8.0.90.0040.00416.78
8.0.80.0070.00816.96
8.0.70.0080.00016.86
8.0.60.0040.00416.77
8.0.50.0040.00416.92
8.0.30.0120.01117.09
8.0.20.0090.01117.40
8.0.10.0050.00216.93
8.0.00.0110.00716.80
7.4.330.0000.00515.08
7.4.320.0000.00616.53
7.4.300.0030.00316.50
7.4.290.0070.00016.64
7.4.280.0030.00516.49
7.4.270.0000.00616.43
7.4.260.0080.00016.64
7.4.250.0020.00516.42
7.4.240.0040.00316.61
7.4.230.0030.00316.50
7.4.220.0060.00916.63
7.4.210.0060.01216.58
7.4.200.0050.00216.56
7.4.160.0060.01216.43
7.4.150.0070.01017.40
7.4.140.0120.00517.86
7.4.130.0070.01016.36
7.4.120.0070.01216.50
7.4.110.0180.00016.52
7.4.100.0180.00016.37
7.4.90.0070.01116.49
7.4.80.0030.01319.39
7.4.70.0030.01416.49
7.4.60.0100.00716.33
7.4.50.0000.01416.64
7.4.40.0060.01016.61
7.4.30.0060.01216.54
7.4.00.0110.00414.82
7.3.330.0020.00213.07
7.3.320.0000.00612.98
7.3.310.0000.00816.34
7.3.300.0030.00316.20
7.3.290.0030.00316.05
7.3.280.0090.00816.18
7.3.270.0140.00617.40
7.3.260.0070.01016.38
7.3.250.0100.00916.21
7.3.240.0080.01116.22
7.3.230.0120.00616.46
7.3.210.0090.00916.25
7.3.200.0030.01519.39
7.3.190.0000.01616.25
7.3.180.0030.01316.23
7.3.170.0140.00316.09
7.3.160.0100.00616.29
7.3.10.0180.00716.64
7.3.00.0170.01016.68
7.2.330.0080.00816.61
7.2.320.0060.01616.37
7.2.310.0100.00716.61
7.2.300.0000.01816.51
7.2.290.0030.01416.39
7.2.130.0180.01416.78
7.2.120.0210.00616.74
7.2.110.0070.00716.26
7.2.100.0200.01016.65
7.2.90.0190.00416.62
7.2.80.0150.00715.78
7.2.70.0930.00515.82
7.2.60.0130.01316.48
7.2.50.0130.01016.75
7.2.40.0090.01216.56
7.2.30.0080.01116.05
7.2.20.0090.00616.87
7.2.10.0160.01016.88
7.2.00.0140.00316.81
7.1.250.0150.00815.77
7.1.200.0080.00815.50
7.1.70.0030.00717.14
7.1.60.0070.01819.15
7.1.00.0070.07322.37
7.0.200.0050.00516.75
7.0.60.0200.03719.83
7.0.50.0130.06717.81
7.0.40.0070.07320.19
7.0.30.0270.07720.00
7.0.20.0170.04320.11
7.0.10.0100.03720.04
7.0.00.0070.04020.19
5.6.280.0000.07321.13
5.6.210.0100.05020.64
5.6.200.0100.08718.17
5.6.190.0030.04720.61
5.6.180.0070.08720.41
5.6.170.0230.05020.40
5.6.160.0030.07320.32
5.6.150.0030.07318.15
5.6.140.0130.05318.09
5.6.130.0070.03718.20
5.6.120.0030.04020.95
5.6.110.0070.06021.02
5.6.100.0100.08321.00
5.6.90.0170.07320.93
5.6.80.0100.07320.35
5.5.350.0170.08720.44
5.5.340.0030.06018.02
5.5.330.0130.08020.57
5.5.320.0230.03720.27
5.5.310.0300.07720.29
5.5.300.0070.03718.02
5.5.290.0130.06717.92
5.5.280.0270.06720.87
5.5.270.0030.06020.86
5.5.260.0000.06020.77
5.5.250.0170.06720.61
5.5.240.0000.08720.04

preferences:
50.12 ms | 401 KiB | 5 Q