3v4l.org

run code in 300+ PHP versions simultaneously
<?php // Curious about the bytecode difference between comma-separated and period-concatenated echoes echo 'foo', 'bar', 'baz'; echo 'foo' . 'bar' . 'baz'; $bar = 'bar'; echo 'foo', $bar[rand(0,2)], 'baz'; echo 'foo' . $bar[rand(0,2)] . 'baz';

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)
7.2.00.0070.01119.07
7.1.70.0040.00716.95
7.1.60.0120.01219.40
7.1.50.0000.01116.99
7.1.00.0000.08022.36
7.0.200.0000.00716.43
7.0.140.0100.09022.18
7.0.60.0100.08319.86
7.0.50.0100.05317.82
7.0.40.0100.08720.06
7.0.30.0270.04720.09
7.0.20.0300.07320.14
7.0.10.0000.09020.13
7.0.00.0070.03720.30
5.6.280.0000.07720.90
5.6.210.0100.06020.61
5.6.200.0070.05318.15
5.6.190.0130.03720.27
5.6.180.0130.04720.61
5.6.170.0270.07320.52
5.6.160.0070.09320.51
5.6.150.0000.05018.22
5.6.140.0030.06018.11
5.6.130.0070.03718.14
5.6.120.0130.08321.00
5.6.110.0130.07721.02
5.6.100.0100.08320.95
5.6.90.0030.05321.07
5.6.80.0130.07720.37
5.5.350.3930.03320.38
5.5.340.0130.08017.92
5.5.330.0130.07320.28
5.5.320.0270.05320.23
5.5.310.0300.07720.25
5.5.300.0070.08017.97
5.5.290.0070.03717.91
5.5.280.0070.04020.73
5.5.270.0070.07020.76
5.5.260.0070.08720.86
5.5.250.0070.03720.68
5.5.240.0070.07320.23
5.4.450.0870.05719.27
5.4.440.0900.05319.32
5.4.430.0100.05319.21
5.4.420.0870.05319.16
5.4.410.0570.06019.38
5.4.400.0330.05319.21
5.4.390.0770.05318.96
5.4.380.0200.05018.73
5.4.370.0070.04718.46
5.4.360.0100.03718.58
5.4.350.0060.03811.97
5.4.340.0110.05011.97
5.4.320.0030.03912.46
5.4.310.0060.03812.45
5.4.300.0060.03612.46
5.4.290.0070.03912.45
5.4.280.0100.04412.35
5.4.270.0060.03712.35
5.4.260.0070.03612.35
5.4.250.0070.03512.35
5.4.240.0070.03512.35
5.4.230.0090.03412.34
5.4.220.0090.03412.34
5.4.210.0060.03512.34
5.4.200.0070.03712.34
5.4.190.0060.03512.34
5.4.180.0080.03312.34
5.4.170.0080.03412.35
5.4.160.0050.03712.34
5.4.150.0090.04712.34
5.4.140.0090.04112.03
5.4.130.0080.03512.01
5.4.120.0080.03411.97
5.4.110.0060.03911.97
5.4.100.0090.03211.97
5.4.90.0080.03711.97
5.4.80.0070.03811.96
5.4.70.0090.03211.96
5.4.60.0070.03411.96
5.4.50.0110.03111.96
5.4.40.0040.03611.95
5.4.30.0070.03411.95
5.4.20.0070.03411.95
5.4.10.0040.03611.95
5.4.00.0060.03511.45
5.3.290.0110.03912.80
5.3.280.0070.03712.71
5.3.270.0080.04912.72
5.3.260.0050.04612.71
5.3.250.0050.03712.72
5.3.240.0030.03912.72
5.3.230.0060.03712.71
5.3.220.0050.04112.68
5.3.210.0080.03912.68
5.3.200.0080.03612.68
5.3.190.0060.03812.68
5.3.180.0080.03512.68
5.3.170.0080.03512.67
5.3.160.0050.03812.68
5.3.150.0070.03612.67
5.3.140.0060.03812.66
5.3.130.0070.03912.66
5.3.120.0050.04612.66
5.3.110.0050.04012.66
5.3.100.0070.03612.12
5.3.90.0100.03412.08
5.3.80.0070.03512.07
5.3.70.0060.03912.07
5.3.60.0060.03712.07
5.3.50.0070.03512.00
5.3.40.0040.03812.00
5.3.30.0080.03211.95
5.3.20.0040.03811.73
5.3.10.0090.03111.70
5.3.00.0020.04011.68
5.2.170.0050.0309.18
5.2.160.0020.0369.18
5.2.150.0080.0399.18
5.2.140.0050.0439.18
5.2.130.0050.0299.14
5.2.120.0060.0349.14
5.2.110.0060.0299.14
5.2.100.0040.0339.14
5.2.90.0070.0329.14
5.2.80.0050.0409.14
5.2.70.0040.0349.14
5.2.60.0080.0289.09
5.2.50.0030.0329.06
5.2.40.0060.0279.04
5.2.30.0060.0289.01
5.2.20.0050.0289.00
5.2.10.0050.0298.92
5.2.00.0060.0288.78
5.1.60.0040.0248.06
5.1.50.0040.0258.06
5.1.40.0070.0218.04
5.1.30.0040.0278.39
5.1.20.0060.0258.41
5.1.10.0060.0248.13
5.1.00.0040.0258.14
5.0.50.0050.0206.61
5.0.40.0040.0186.48
5.0.30.0050.0296.29
5.0.20.0040.0186.25
5.0.10.0010.0226.23
5.0.00.0020.0326.23
4.4.90.0000.0184.78
4.4.80.0050.0124.76
4.4.70.0020.0174.75
4.4.60.0040.0144.76
4.4.50.0030.0154.77
4.4.40.0010.0264.71
4.4.30.0030.0214.75
4.4.20.0040.0154.84
4.4.10.0020.0164.85
4.4.00.0040.0234.76
4.3.110.0020.0164.67
4.3.100.0030.0154.66
4.3.90.0040.0144.63
4.3.80.0040.0234.58
4.3.70.0020.0154.63
4.3.60.0030.0144.63
4.3.50.0040.0144.63
4.3.40.0050.0224.54
4.3.30.0020.0163.28
4.3.20.0020.0163.26
4.3.10.0020.0163.22
4.3.00.0100.0238.44

preferences:
34.75 ms | 401 KiB | 5 Q