3v4l.org

run code in 300+ PHP versions simultaneously
<?php class String { public function __construct($s) { $this->payload = str_split($s, 1); } } $test = new String("hello"); var_dump($test->payload);

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)
5.6.280.0100.06720.91
5.6.210.0030.07320.67
5.6.200.0070.08018.29
5.6.190.0070.06320.34
5.6.180.3600.03720.34
5.6.170.0170.05320.44
5.6.160.0070.04020.39
5.6.150.0070.03718.12
5.6.140.0030.05718.29
5.6.130.0000.05318.18
5.6.120.0030.09021.02
5.6.110.0030.08720.99
5.6.100.0130.07721.14
5.6.90.0170.08021.10
5.6.80.0130.07020.37
5.6.70.4230.03720.42
5.5.350.0030.07720.38
5.5.340.0030.08717.98
5.5.330.0000.09020.42
5.5.320.0330.07320.30
5.5.310.0300.03720.41
5.5.300.0170.07317.98
5.5.290.0100.07717.94
5.5.280.0100.08320.65
5.5.270.0100.08020.73
5.5.260.0100.07720.76
5.5.250.0130.07320.46
5.5.240.0170.03720.16
5.4.450.0070.06019.63
5.4.440.0870.05719.62
5.4.430.0830.07019.30
5.4.420.0700.00019.52
5.4.410.0130.06318.68
5.4.400.0230.04718.53
5.4.390.0130.06318.56
5.4.380.0300.04718.47
5.4.370.0100.03718.78
5.4.360.0130.04018.74
5.4.350.0050.03512.02
5.4.340.0070.03512.02
5.4.320.0070.04612.50
5.4.310.0050.04212.50
5.4.300.0050.03712.50
5.4.290.0030.04412.50
5.4.280.0030.03912.39
5.4.270.0050.03812.39
5.4.260.0080.03712.39
5.4.250.0080.03812.39
5.4.240.0080.04912.39
5.4.230.0070.04112.39
5.4.220.0080.03512.39
5.4.210.0060.03612.39
5.4.200.0070.03712.39
5.4.190.0040.03812.38
5.4.180.0040.03712.38
5.4.170.0070.03512.39
5.4.160.0060.03512.39
5.4.150.0050.03712.39
5.4.140.0080.03512.07
5.4.130.0050.03712.06
5.4.120.0060.03612.01
5.4.110.0030.03912.01
5.4.100.0080.03512.01
5.4.90.0090.03412.01
5.4.80.0050.03812.01
5.4.70.0080.03312.00
5.4.60.0060.03612.00
5.4.50.0070.03412.01
5.4.40.0100.04212.00
5.4.30.0070.03611.99
5.4.20.0050.03612.00
5.4.10.0050.03511.99
5.4.00.0040.03811.48
5.3.290.0110.03612.80
5.3.280.0070.03712.71
5.3.270.0080.03912.73
5.3.260.0100.03612.72
5.3.250.0080.03512.72
5.3.240.0050.03912.72
5.3.230.0070.03812.71
5.3.220.0060.03812.68
5.3.210.0060.04012.68
5.3.200.0050.03712.68
5.3.190.0090.03512.68
5.3.180.0080.03512.67
5.3.170.0070.03712.67
5.3.160.0100.03212.67
5.3.150.0110.03312.68
5.3.140.0060.03712.66
5.3.130.0060.03912.66
5.3.120.0060.04012.66
5.3.110.0050.04012.66
5.3.100.0070.03612.12
5.3.90.0080.03512.09
5.3.80.0030.03912.09
5.3.70.0060.03612.09
5.3.60.0070.03612.07
5.3.50.0020.04012.02
5.3.40.0090.03312.03
5.3.30.0080.03311.98
5.3.20.0100.03611.76
5.3.10.0060.03611.72
5.3.00.0100.03311.71
5.2.170.0040.0319.22
5.2.160.0020.0319.22
5.2.150.0050.0309.22
5.2.140.0020.0349.22
5.2.130.0050.0309.18
5.2.120.0050.0289.18
5.2.110.0090.0259.18
5.2.100.0030.0309.18
5.2.90.0050.0289.18
5.2.80.0040.0319.17
5.2.70.0060.0319.17
5.2.60.0070.0289.13
5.2.50.0050.0339.10
5.2.40.0080.0269.07
5.2.30.0040.0309.04
5.2.20.0060.0289.03
5.2.10.0050.0288.94
5.2.00.0070.0268.80
5.1.60.0060.0228.09
5.1.50.0040.0258.09
5.1.40.0050.0248.06
5.1.30.0050.0258.41
5.1.20.0030.0298.43
5.1.10.0070.0338.16
5.1.00.0040.0378.16
5.0.50.0050.0226.64
5.0.40.0020.0216.49
5.0.30.0040.0346.31
5.0.20.0050.0196.27
5.0.10.0020.0246.25
5.0.00.0020.0326.24
4.4.90.0030.0154.78
4.4.80.0040.0144.76
4.4.70.0010.0174.76
4.4.60.0030.0164.75
4.4.50.0040.0204.77
4.4.40.0020.0264.71
4.4.30.0020.0164.76
4.4.20.0050.0144.84
4.4.10.0050.0134.85
4.4.00.0010.0274.76
4.3.110.0040.0144.67
4.3.100.0030.0144.66
4.3.90.0020.0154.63
4.3.80.0040.0234.59
4.3.70.0000.0174.63
4.3.60.0060.0114.62
4.3.50.0030.0154.63
4.3.40.0010.0264.54
4.3.30.0010.0173.30
4.3.20.0010.0173.28
4.3.10.0020.0163.24
4.3.00.0200.0206.55

preferences:
139.6 ms | 1386 KiB | 7 Q