3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { function p($arg) { return 'A'; } } $a = new A; var_dump(new {$a->p}('omg'));

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.350.0070.04712.03
5.4.340.0080.04512.02
5.4.320.0120.04612.52
5.4.310.0060.05412.51
5.4.300.0060.05012.51
5.4.290.0100.05012.51
5.4.280.0080.04812.41
5.4.270.0070.04812.41
5.4.260.0050.05312.41
5.4.250.0040.05412.41
5.4.240.0090.04812.41
5.4.230.0060.05312.40
5.4.220.0070.05012.40
5.4.210.0070.04912.40
5.4.200.0110.04912.40
5.4.190.0060.05112.40
5.4.180.0070.05012.39
5.4.170.0050.05212.40
5.4.160.0110.04412.40
5.4.150.0080.04512.40
5.4.140.0070.05212.09
5.4.130.0090.04512.07
5.4.120.0070.05012.03
5.4.110.0090.04812.03
5.4.100.0050.04812.03
5.4.90.0110.04712.03
5.4.80.0060.05112.03
5.4.70.0080.04712.03
5.4.60.0060.05012.02
5.4.50.0090.04712.03
5.4.40.0100.04512.02
5.4.30.0070.04812.01
5.4.20.0100.04612.01
5.4.10.0070.04912.01
5.4.00.0050.05211.51
5.3.290.0060.05512.80
5.3.280.0060.05112.71
5.3.270.0070.05612.73
5.3.260.0100.05112.72
5.3.250.0080.05212.71
5.3.240.0070.05212.72
5.3.230.0090.04812.70
5.3.220.0090.05012.68
5.3.210.0100.05012.68
5.3.200.0080.05212.68
5.3.190.0090.04812.68
5.3.180.0080.05012.67
5.3.170.0070.05112.67
5.3.160.0090.04912.67
5.3.150.0080.05112.67
5.3.140.0130.04412.66
5.3.130.0020.05812.66
5.3.120.0110.05312.66
5.3.110.0130.05512.66
5.3.100.0100.05112.12
5.3.90.0060.05412.11
5.3.80.0140.05012.09
5.3.70.0080.05012.09
5.3.60.0080.04812.08
5.3.50.0090.05212.02
5.3.40.0070.05012.02
5.3.30.0090.04611.98
5.3.20.0090.04811.76
5.3.10.0110.06511.73
5.3.00.0080.05011.72
5.2.170.0060.0439.22
5.2.160.0120.0379.22
5.2.150.0080.0439.22
5.2.140.0080.0419.21
5.2.130.0020.0469.18
5.2.120.0090.0579.18
5.2.110.0090.0359.18
5.2.100.0050.0429.18
5.2.90.0070.0399.18
5.2.80.0040.0399.17
5.2.70.0070.0359.17
5.2.60.0050.0369.13
5.2.50.0080.0419.10
5.2.40.0050.0359.07
5.2.30.0070.0339.05
5.2.20.0060.0349.04
5.2.10.0070.0378.95
5.2.00.0110.0338.81
5.1.60.0100.0318.09
5.1.50.0020.0398.08
5.1.40.0080.0338.07
5.1.30.0130.0298.42
5.1.20.0010.0408.44
5.1.10.0050.0348.16
5.1.00.0050.0308.16
5.0.50.0070.0206.64
5.0.40.0100.0186.50
5.0.30.0040.0376.31
5.0.20.0040.0316.28
5.0.10.0050.0306.26
5.0.00.0050.0446.25
4.4.90.0030.0174.78
4.4.80.0060.0134.75
4.4.70.0030.0184.75
4.4.60.0020.0174.75
4.4.50.0030.0164.77
4.4.40.0040.0314.71
4.4.30.0040.0164.76
4.4.20.0020.0184.84
4.4.10.0060.0174.85
4.4.00.0030.0324.75
4.3.110.0040.0214.67
4.3.100.0050.0194.66
4.3.90.0060.0134.63
4.3.80.0040.0324.58
4.3.70.0020.0224.63
4.3.60.0020.0174.63
4.3.50.0050.0174.62
4.3.40.0030.0314.54
4.3.30.0010.0173.30
4.3.20.0010.0183.28
4.3.10.0030.0183.24
4.3.00.0030.0276.85

preferences:
139.1 ms | 1394 KiB | 7 Q