3v4l.org

run code in 300+ PHP versions simultaneously
<?php $head=memory_get_usage(); class x {public $key1='bla',$key2='some';} $x=new x; echo (memory_get_usage()-$head);

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.0000.00819.43
7.1.70.0000.00816.74
7.1.60.0030.01719.32
7.1.50.0130.00716.91
7.1.00.0000.08022.48
7.0.200.0040.00416.72
7.0.140.0030.07022.18
7.0.60.0200.07019.89
7.0.50.0000.09017.84
7.0.40.0000.05020.08
7.0.30.0170.04020.13
7.0.20.0130.05320.06
7.0.10.0070.08720.15
7.0.00.0100.04020.15
5.6.280.0070.06721.10
5.6.210.0100.07720.51
5.6.200.0070.08018.28
5.6.190.0130.05320.55
5.6.180.0270.06320.67
5.6.170.0130.04320.56
5.6.160.0100.08020.45
5.6.150.0130.08018.12
5.6.140.0000.07318.28
5.6.130.0100.04318.19
5.6.120.0100.03721.02
5.6.110.0100.04321.04
5.6.100.0200.07320.95
5.6.90.0130.08020.97
5.6.80.0070.03320.37
5.5.350.0170.08720.52
5.5.340.0000.04717.98
5.5.330.0100.06020.35
5.5.320.0270.04720.25
5.5.310.0230.08320.36
5.5.300.0030.04317.98
5.5.290.0100.08017.91
5.5.280.0100.06320.87
5.5.270.0170.06720.88
5.5.260.0030.08020.66
5.5.250.0030.04320.57
5.5.240.0000.08320.19
5.4.450.0430.06319.39
5.4.440.0500.06719.38
5.4.430.0130.05019.32
5.4.420.0100.05319.36
5.4.410.0200.04319.38
5.4.400.0300.07718.67
5.4.390.0200.06018.69
5.4.380.0270.06018.75
5.4.370.0230.06718.74
5.4.360.0370.05318.62
5.4.350.0030.04412.02
5.4.340.0080.03612.01
5.4.320.0040.04412.50
5.4.310.0050.04312.50
5.4.300.0080.03912.50
5.4.290.0060.03912.49
5.4.280.0070.04112.39
5.4.270.0080.03612.39
5.4.260.0060.03912.39
5.4.250.0050.03912.39
5.4.240.0090.03312.39
5.4.230.0080.04212.38
5.4.220.0100.04112.38
5.4.210.0040.03812.38
5.4.200.0060.04112.38
5.4.190.0060.03812.38
5.4.180.0060.03612.38
5.4.170.0040.04012.39
5.4.160.0030.04112.38
5.4.150.0060.03912.38
5.4.140.0090.03712.06
5.4.130.0090.03412.05
5.4.120.0050.04012.01
5.4.110.0090.03712.01
5.4.100.0060.03712.01
5.4.90.0040.04012.00
5.4.80.0060.03812.01
5.4.70.0090.03412.00
5.4.60.0060.04112.00
5.4.50.0050.03812.00
5.4.40.0040.03711.99
5.4.30.0050.03611.99
5.4.20.0040.03811.99
5.4.10.0060.03511.99
5.4.00.0070.03511.48
5.3.290.0070.04212.80
5.3.280.0080.04412.71
5.3.270.0080.03912.72
5.3.260.0100.03712.72
5.3.250.0090.05012.72
5.3.240.0050.04012.72
5.3.230.0080.03612.71
5.3.220.0070.03712.68
5.3.210.0070.04312.68
5.3.200.0040.03912.68
5.3.190.0080.04012.68
5.3.180.0050.03812.67
5.3.170.0060.04112.67
5.3.160.0080.03712.68
5.3.150.0060.04212.68
5.3.140.0060.04112.66
5.3.130.0070.03712.66
5.3.120.0070.03712.66
5.3.110.0080.03612.66
5.3.100.0050.04112.12
5.3.90.0040.03912.09
5.3.80.0080.03412.09
5.3.70.0040.03912.08
5.3.60.0050.03712.07
5.3.50.0040.04312.02
5.3.40.0050.04212.02
5.3.30.0050.03711.97
5.3.20.0070.03911.75
5.3.10.0070.03611.72
5.3.00.0040.03811.71
5.2.170.0080.0309.21
5.2.160.0050.0349.21
5.2.150.0040.0309.21
5.2.140.0040.0339.21
5.2.130.0090.0309.17
5.2.120.0050.0309.17
5.2.110.0040.0419.18
5.2.100.0010.0349.17
5.2.90.0060.0299.17
5.2.80.0020.0369.16
5.2.70.0070.0349.16
5.2.60.0070.0359.12
5.2.50.0080.0339.09
5.2.40.0030.0329.07
5.2.30.0030.0319.04
5.2.20.0030.0319.02
5.2.10.0040.0338.93
5.2.00.0070.0268.79
5.1.60.0070.0258.08
5.1.50.0040.0268.08
5.1.40.0070.0238.06
5.1.30.0030.0278.41
5.1.20.0080.0278.43
5.1.10.0060.0288.16
5.1.00.0060.0268.16
5.0.50.0070.0196.64
5.0.40.0020.0226.50
5.0.30.0050.0316.31
5.0.20.0010.0226.27
5.0.10.0030.0216.25
5.0.00.0060.0296.25
4.4.90.0020.0174.78
4.4.80.0040.0134.76
4.4.70.0060.0144.75
4.4.60.0030.0204.75
4.4.50.0020.0164.77
4.4.40.0060.0234.71
4.4.30.0030.0164.75
4.4.20.0030.0164.85
4.4.10.0050.0144.85
4.4.00.0040.0274.76
4.3.110.0000.0194.67
4.3.100.0020.0164.67
4.3.90.0010.0164.63
4.3.80.0010.0264.58
4.3.70.0050.0144.63
4.3.60.0020.0154.63
4.3.50.0010.0194.63
4.3.40.0010.0274.54
4.3.30.0030.0173.30
4.3.20.0010.0173.28
4.3.10.0020.0173.23
4.3.00.0130.0237.21

preferences:
64.57 ms | 1181 KiB | 5 Q