3v4l.org

run code in 300+ PHP versions simultaneously
<?php class string {} function lolphp(string $data) { echo($data); } lolphp("Hello");

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.4.310.0050.04412.50
5.4.300.0090.05012.50
5.4.290.0090.06412.50
5.4.280.0130.06312.40
5.4.270.0070.05312.40
5.4.260.0060.04312.40
5.4.250.0070.04212.40
5.4.240.0100.03912.39
5.4.230.0120.05012.39
5.4.220.0070.05012.39
5.4.210.0090.04712.39
5.4.200.0080.05812.39
5.4.190.0090.05412.39
5.4.180.0040.05412.39
5.4.170.0090.03812.39
5.4.160.0070.04312.39
5.4.150.0060.03612.39
5.4.140.0060.03812.07
5.4.130.0080.03812.06
5.4.120.0050.03812.02
5.4.110.0070.03512.01
5.4.100.0070.04212.02
5.4.90.0100.03512.02
5.4.80.0090.04312.01
5.4.70.0080.03812.01
5.4.60.0050.04512.00
5.4.50.0070.04212.01
5.4.40.0100.03912.00
5.4.30.0100.03312.00
5.4.20.0070.03512.00
5.4.10.0060.03511.99
5.4.00.0050.03711.49
5.3.290.0090.05112.80
5.3.280.0050.04012.71
5.3.270.0050.04112.73
5.3.260.0080.04112.72
5.3.250.0040.04612.72
5.3.240.0100.04512.72
5.3.230.0160.03512.71
5.3.220.0070.05312.68
5.3.210.0120.04312.68
5.3.200.0090.03912.68
5.3.190.0090.04312.68
5.3.180.0080.04712.68
5.3.170.0050.03912.67
5.3.160.0080.03712.67
5.3.150.0030.04312.68
5.3.140.0080.03812.66
5.3.130.0110.05512.66
5.3.120.0050.05712.66
5.3.110.0110.05912.66
5.3.100.0110.05512.12
5.3.90.0170.06812.10
5.3.80.0060.05012.10
5.3.70.0090.04612.09
5.3.60.0080.05112.07
5.3.50.0110.04412.02
5.3.40.0080.05012.02
5.3.30.0210.04611.98
5.3.20.0140.03411.76
5.3.10.0100.03711.73
5.3.00.0070.05111.72
5.2.170.0080.0449.22
5.2.160.0080.0469.22
5.2.150.0060.0489.22
5.2.140.0150.0569.21
5.2.130.0100.0409.18
5.2.120.0090.0399.18
5.2.110.0080.0379.18
5.2.100.0090.0359.17
5.2.90.0070.0489.17
5.2.80.0110.0379.17
5.2.70.0190.0589.17
5.2.60.0090.0459.13
5.2.50.0120.0609.10
5.2.40.0130.0489.07
5.2.30.0130.0499.05
5.2.20.0080.0399.04
5.2.10.0070.0448.94
5.2.00.0170.0608.80
5.1.60.0150.0598.09
5.1.50.0050.0458.09
5.1.40.0180.0638.06
5.1.30.0100.0578.41
5.1.20.0080.0348.43
5.1.10.0060.0338.17
5.1.00.0090.0328.16
5.0.50.0050.0256.63
5.0.40.0090.0206.50
5.0.30.0060.0516.32
5.0.20.0170.0286.27
5.0.10.0120.0356.25
5.0.00.0050.0456.25
4.4.90.0040.0204.78
4.4.80.0040.0234.75
4.4.70.0140.0284.76
4.4.60.0170.0314.76
4.4.50.0040.0284.77
4.4.40.0070.0774.71
4.4.30.0060.0204.76
4.4.20.0040.0224.84
4.4.10.0120.0274.85
4.4.00.0110.0384.76
4.3.110.0050.0234.66
4.3.100.0060.0164.66
4.3.90.0040.0164.64
4.3.80.0030.0374.58
4.3.70.0100.0494.63
4.3.60.0080.0354.63
4.3.50.0060.0364.63
4.3.40.0050.0514.53
4.3.30.0060.0333.30
4.3.20.0030.0193.29
4.3.10.0030.0303.24
4.3.00.0030.01715.91

preferences:
140.62 ms | 1398 KiB | 7 Q