3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { function __call($strMethod, $arrArgs) { return "PHP " .phpversion(); } } class B extends A { function getVersion() { return parent::getVersion() . " Rocks!"; } } $A = new A(); echo $A->getVersion() . "<br/>"; $B = new B(); echo $B->getVersion() . "<br/>"; ?>

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.1.70.0030.00917.13
7.1.60.0100.01419.32
7.1.50.0060.00616.91
7.1.00.0070.07722.28
7.0.200.0030.00616.73
7.0.140.0030.07322.00
7.0.60.0130.06319.80
7.0.50.0030.07717.83
7.0.40.0100.09019.96
7.0.30.0230.08320.24
7.0.20.0230.05320.12
7.0.10.0070.08020.24
7.0.00.0130.04720.08
5.6.280.0070.07021.10
5.6.210.0130.06720.63
5.6.200.0100.08718.18
5.6.190.0070.05320.68
5.6.180.3230.03720.78
5.6.170.0230.05320.44
5.6.160.0030.08020.46
5.6.150.0030.08718.16
5.6.140.0130.07718.11
5.6.130.0130.03318.12
5.6.120.0030.04321.00
5.6.110.0130.08021.02
5.6.100.0070.06320.98
5.6.90.0030.05720.99
5.6.80.0130.06720.29
5.6.70.3270.03320.40
5.5.350.0230.08320.54
5.5.340.0030.07718.04
5.5.330.0030.04020.56
5.5.320.3900.04320.28
5.5.310.0270.05020.31
5.5.300.0130.07317.97
5.5.290.0130.06717.98
5.5.280.0100.04320.86
5.5.270.0070.04020.80
5.5.260.0030.04020.85
5.5.250.0130.08020.75
5.5.240.0200.06720.27
5.4.450.0830.05719.45
5.4.440.0900.05319.55
5.4.430.0730.05319.47
5.4.420.1100.06319.60
5.4.410.1000.04719.47
5.4.400.0730.05719.40
5.4.390.0130.05019.30
5.4.380.0730.06019.28
5.4.370.0900.05019.12
5.4.360.0170.05019.15
5.4.350.0700.06019.28
5.4.340.0040.03612.02
5.4.320.0080.03412.50
5.4.310.0060.03712.50
5.4.300.0080.03412.51
5.4.290.0040.03912.50
5.4.280.0070.03412.40
5.4.270.0070.03412.40
5.4.260.0060.03612.40
5.4.250.0070.03512.40
5.4.240.0060.03512.39
5.4.230.0050.03812.39
5.4.220.0080.03512.39
5.4.210.0050.03712.39
5.4.200.0060.03712.39
5.4.190.0050.03712.38
5.4.180.0070.03412.38
5.4.170.0030.03812.40
5.4.160.0050.03512.39
5.4.150.0050.03612.39
5.4.140.0040.03812.07
5.4.130.0030.04012.06
5.4.120.0050.03612.02
5.4.110.0090.03312.01
5.4.100.0050.03512.02
5.4.90.0050.03612.02
5.4.80.0070.03412.02
5.4.70.0040.03612.01
5.4.60.0070.03212.01
5.4.50.0040.03612.01
5.4.40.0080.03112.00
5.4.30.0050.03512.00
5.4.20.0030.03712.00
5.4.10.0070.03312.00
5.4.00.0050.03611.49
5.3.290.0070.03712.80
5.3.280.0060.03812.71
5.3.270.0070.03812.72
5.3.260.0040.04112.71
5.3.250.0070.03612.72
5.3.240.0060.03712.72
5.3.230.0060.03912.71
5.3.220.0060.04412.68
5.3.210.0070.04412.68
5.3.200.0080.03812.68
5.3.190.0060.03612.68
5.3.180.0060.03612.67
5.3.170.0050.03712.67
5.3.160.0060.03712.68
5.3.150.0070.03612.68
5.3.140.0060.03512.66
5.3.130.0060.03812.66
5.3.120.0070.03712.66
5.3.110.0090.04112.66
5.3.100.0050.03712.12
5.3.90.0050.03712.10
5.3.80.0060.03512.09
5.3.70.0060.03512.10
5.3.60.0080.03512.08
5.3.50.0070.03512.03
5.3.40.0090.03312.03
5.3.30.0070.03411.99
5.3.20.0050.04411.77
5.3.10.0060.04011.73
5.3.00.0040.03811.72
5.2.170.0070.0289.22
5.2.160.0030.0309.23
5.2.150.0070.0289.23
5.2.140.0020.0329.22
5.2.130.0070.0269.18
5.2.120.0060.0269.18
5.2.110.0020.0319.19
5.2.100.0060.0279.18
5.2.90.0040.0309.18
5.2.80.0020.0379.18
5.2.70.0050.0299.18
5.2.60.0040.0309.13
5.2.50.0020.0329.10
5.2.40.0020.0309.08
5.2.30.0020.0319.06
5.2.20.0050.0289.04
5.2.10.0050.0308.95
5.2.00.0050.0308.82
5.1.60.0080.0308.09
5.1.50.0040.0258.09
5.1.40.0050.0238.07
5.1.30.0070.0318.42
5.1.20.0060.0278.45
5.1.10.0040.0338.17
5.1.00.0050.0258.17
5.0.50.0030.0246.65
5.0.40.0070.0166.50
5.0.30.0050.0306.32
5.0.20.0020.0216.29
5.0.10.0040.0196.27
5.0.00.0020.0326.26
4.4.90.0030.0154.78
4.4.80.0010.0174.75
4.4.70.0040.0164.75
4.4.60.0060.0134.75
4.4.50.0040.0154.77
4.4.40.0020.0264.70
4.4.30.0030.0154.76
4.4.20.0020.0174.85
4.4.10.0010.0204.85
4.4.00.0040.0244.76
4.3.110.0020.0164.67
4.3.100.0030.0144.67
4.3.90.0030.0144.63
4.3.80.0020.0254.59
4.3.70.0010.0164.63
4.3.60.0000.0174.63
4.3.50.0030.0154.63
4.3.40.0010.0264.54
4.3.30.0040.0143.30
4.3.20.0020.0163.28
4.3.10.0010.0173.24
4.3.00.0300.0236.71

preferences:
38 ms | 400 KiB | 5 Q