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';

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.0080.00819.45
7.1.70.0080.00817.29
7.1.60.0070.01819.40
7.1.50.0030.01716.94
7.1.00.0070.07322.44
7.0.200.0040.00416.78
7.0.140.0000.07722.22
7.0.100.0130.05319.99
7.0.90.0030.06719.98
7.0.80.0230.07720.13
7.0.70.0070.07019.89
7.0.60.0030.04719.92
7.0.50.0100.05320.35
7.0.40.0130.04020.11
7.0.30.0130.04020.17
7.0.20.0070.03720.01
7.0.10.0070.05320.18
7.0.00.0100.07019.99
5.6.280.0130.06721.11
5.6.250.0130.03720.71
5.6.240.0100.05020.62
5.6.230.0000.05320.65
5.6.220.0070.06320.54
5.6.210.0030.08020.73
5.6.200.0030.09020.95
5.6.190.0170.06321.16
5.6.180.0130.03321.02
5.6.170.0100.07321.04
5.6.160.0070.05021.03
5.6.150.0030.04321.13
5.6.140.0030.04320.99
5.6.130.0070.07021.11
5.6.120.0000.05721.00
5.6.110.0070.07721.05
5.6.100.0130.04021.00
5.6.90.0070.04021.04
5.6.80.0070.04320.45
5.6.70.0070.06020.48
5.6.60.0000.04320.45
5.6.50.0000.09020.42
5.6.40.0070.08020.28
5.6.30.0070.03320.46
5.6.20.0070.04320.27
5.6.10.0130.07020.42
5.6.00.0100.08020.39
5.5.380.0100.06320.33
5.5.370.0100.05320.34
5.5.360.0130.04320.34
5.5.350.0130.05320.36
5.5.340.0170.06720.85
5.5.330.0100.05720.80
5.5.320.0070.03720.82
5.5.310.0030.04020.90
5.5.300.0100.05320.88
5.5.290.0030.04720.79
5.5.280.0030.05020.75
5.5.270.0030.05020.71
5.5.260.0030.05020.76
5.5.250.0100.05720.72
5.5.240.0100.10020.18
5.5.230.0000.07720.06
5.5.220.0070.05020.23
5.5.210.0100.06020.27
5.5.200.0030.05020.18
5.5.190.0070.07020.23
5.5.180.0070.04020.24
5.5.160.0030.05720.13
5.5.150.0030.07020.17
5.5.140.0070.03320.26
5.5.130.0030.04319.98
5.5.120.0130.07320.28
5.5.110.0070.05020.10
5.5.100.0130.07320.07
5.5.90.0100.03720.06
5.5.80.0100.06320.00
5.5.70.0070.06720.13
5.5.60.0100.05319.95
5.5.50.0070.07320.04
5.5.40.0070.03720.04
5.5.30.0100.06720.04
5.5.20.0030.03720.13
5.5.10.0000.04720.10
5.5.00.0070.03719.95
5.4.450.0070.04719.23
5.4.440.0170.03719.40
5.4.430.0030.05019.37
5.4.420.0070.08019.46
5.4.410.0100.04719.22
5.4.400.0130.03319.12
5.4.390.0030.06019.23
5.4.380.0100.03018.90
5.4.370.0070.04019.14
5.4.360.0070.05719.10
5.4.350.0000.04319.02
5.4.340.0170.07018.89
5.4.320.0000.04718.95
5.4.310.0070.05019.12
5.4.300.0070.04719.03
5.4.290.0000.04319.13
5.4.280.0130.05718.96
5.4.270.0030.06319.11
5.4.260.0070.07319.23
5.4.250.0030.08018.94
5.4.240.0070.06318.78
5.4.230.0030.03719.13
5.4.220.0100.03319.00
5.4.210.0030.04719.09
5.4.200.0030.06318.80
5.4.190.0070.03319.05
5.4.180.0100.05718.93
5.4.170.0100.05019.11
5.4.160.0030.07718.96
5.4.150.0030.03718.96
5.4.140.0130.06316.39
5.4.130.0170.05716.26
5.4.120.0070.04016.36
5.4.110.0230.05316.22
5.4.100.0030.04316.26
5.4.90.0070.03316.34
5.4.80.0030.05016.24
5.4.70.0000.03716.24
5.4.60.0000.04316.33
5.4.50.0070.07016.33
5.4.40.0030.03316.33
5.4.30.0070.07016.38
5.4.20.0030.05316.23
5.4.10.0030.03716.31
5.4.00.0000.05015.77
5.3.290.0130.02714.53
5.3.280.0100.08714.58
5.3.270.0030.04014.46
5.3.260.0000.04014.60
5.3.250.0100.06314.54
5.3.240.0100.06314.59
5.3.230.0100.07714.57
5.3.220.0000.04014.54
5.3.210.0000.04014.41
5.3.200.0000.04314.50
5.3.190.0070.03314.55
5.3.180.0030.03314.52
5.3.170.0070.07014.53
5.3.160.0030.06014.54
5.3.150.0030.07314.39
5.3.140.0030.05014.41
5.3.130.0070.03014.54
5.3.120.0100.05014.53
5.3.110.0000.04014.53
5.3.100.0100.05714.03
5.3.90.0070.05313.97
5.3.80.0070.07714.02
5.3.70.0130.02713.99
5.3.60.0000.06013.95
5.3.50.0100.06713.71
5.3.40.0100.03313.71
5.3.30.0030.03713.70
5.3.20.0070.06713.54
5.3.10.0030.04713.63
5.3.00.0070.04313.62
5.2.170.0030.06011.19
5.2.160.0000.04011.18
5.2.150.0000.06011.16
5.2.140.0030.03011.08
5.2.130.0030.05711.02
5.2.120.0000.03310.93
5.2.110.0130.04011.14
5.2.100.0030.04311.09
5.2.90.0070.05311.14
5.2.80.0100.02011.09
5.2.70.0030.03311.11
5.2.60.0100.02311.04
5.2.50.0030.04010.97
5.2.40.0070.03010.98
5.2.30.0070.02710.82
5.2.20.0030.05710.92
5.2.10.0070.05310.78
5.2.00.0030.05310.65
5.1.60.0000.0509.92
5.1.50.0030.02710.00
5.1.40.0000.0409.96
5.1.30.0100.05010.39
5.1.20.0000.05010.36
5.1.10.0000.02310.14
5.1.00.0030.03010.06
5.0.50.0000.0279.92
5.0.40.0000.0279.92
5.0.30.0030.0409.92
5.0.20.0070.0209.92
5.0.10.0000.0209.92
5.0.00.0000.0279.92
4.4.90.0000.0339.92
4.4.80.0000.0309.92
4.4.70.0030.0109.92
4.4.60.0030.0239.92
4.4.50.0000.0209.92
4.4.40.0030.0409.92
4.4.30.0000.0179.92
4.4.20.0030.0179.92
4.4.10.0000.0239.92
4.4.00.0030.0239.92
4.3.110.0000.0179.92
4.3.100.0000.0179.92
4.3.90.0030.0239.92
4.3.80.0000.0439.92
4.3.70.0000.0209.92
4.3.60.0030.0279.92
4.3.50.0070.0339.92
4.3.40.0000.0209.92
4.3.30.0070.0309.92
4.3.20.0000.0279.92
4.3.10.0000.0139.92
4.3.00.0000.0279.92

preferences:
35.08 ms | 401 KiB | 5 Q