3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foobar { public $id = 0; } $foobar = new Foobar(); $foobar2 = &new Foobar(); $foobar3 = & new Foobar(); $foobar4 =& new Foobar(); $foobar4 &= new Foobar();

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.0080.01316.89
7.1.60.0230.01035.14
7.1.50.0230.01034.40
7.1.40.0160.02234.35
7.1.30.0220.02234.30
7.1.20.0170.01934.40
7.1.10.0100.01716.28
7.1.00.0090.00916.54
7.0.200.0050.01316.63
7.0.190.0030.01216.57
7.0.180.0140.00416.14
7.0.170.0120.00816.20
7.0.160.0150.00816.21
7.0.150.0160.01315.92
7.0.140.0040.01615.90
7.0.130.0040.01216.25
7.0.120.0050.01316.17
7.0.110.0150.00616.05
7.0.100.0120.01016.01
7.0.90.0080.01416.02
7.0.80.0110.01116.17
7.0.70.0160.00916.27
7.0.60.0060.02015.95
7.0.50.0100.01416.07
7.0.40.0110.01516.25
7.0.30.0150.00716.20
7.0.20.0130.01416.22
7.0.10.0150.01216.25
7.0.00.0120.00916.17
5.6.300.0190.08320.75
5.6.290.0100.06920.67
5.6.280.0190.06620.76
5.6.270.0160.05920.74
5.6.260.0140.06120.95
5.6.250.0180.06120.95
5.6.240.0220.06620.85
5.6.230.0210.05620.93
5.6.220.0140.07220.83
5.6.210.0350.06620.68
5.6.200.0160.06920.85
5.6.190.0240.07220.74
5.6.180.0200.05920.78
5.6.170.0170.08520.93
5.6.160.0210.06420.82
5.6.150.0030.07920.75
5.6.140.0170.07420.73
5.6.130.0140.06120.80
5.6.120.0260.06120.70
5.6.110.0240.06720.70
5.6.100.0170.08920.80
5.6.90.0260.06120.70
5.6.80.0200.05820.30
5.6.70.0100.08620.34
5.6.60.0110.06220.09
5.6.50.0280.04820.07
5.6.40.0180.07920.29
5.6.30.0190.07920.20
5.6.20.0190.07720.33
5.6.10.0030.07020.02
5.6.00.0250.05120.24
5.5.380.0200.05317.63
5.5.370.0290.04117.49
5.5.360.0160.06817.39
5.5.350.0250.06617.54
5.5.340.0240.04717.96
5.5.330.0160.08017.79
5.5.320.0130.07017.75
5.5.310.0060.06617.78
5.5.300.0100.06217.75
5.5.290.0190.08218.13
5.5.280.0160.06518.02
5.5.270.0250.07917.96
5.5.260.0210.08018.03
5.5.250.0190.07817.93
5.5.240.0220.06417.41
5.5.230.0100.07217.41
5.5.220.0060.06017.44
5.5.210.0030.08817.16
5.5.200.0130.06417.42
5.5.190.0210.07417.32
5.5.180.0070.06517.35
5.5.160.0100.05717.48
5.5.150.0070.05917.37
5.5.140.0240.04317.48
5.5.130.0140.07717.30
5.5.120.0080.06617.48
5.5.110.0280.06417.09
5.5.100.0190.06817.29
5.5.90.0190.05617.19
5.5.80.0030.06616.95
5.5.70.0090.07016.98
5.5.60.0030.06716.99
5.5.50.0100.05717.26
5.5.40.0130.05417.27
5.5.30.0230.06116.98
5.5.20.0070.06617.03
5.5.10.0060.06217.26
5.5.00.0180.05817.27
5.4.450.0110.06619.25
5.4.440.0180.06519.56
5.4.430.0170.07619.16
5.4.420.0100.06319.33
5.4.410.0120.07419.32
5.4.400.0130.06018.89
5.4.390.0130.06218.94
5.4.380.0130.05619.07
5.4.370.0200.06819.05
5.4.360.0030.06719.00
5.4.350.0240.07018.92
5.4.340.0230.04519.02
5.4.320.0270.04919.14
5.4.310.0100.06018.99
5.4.300.0160.07019.07
5.4.290.0230.06519.13
5.4.280.0180.08319.07
5.4.270.0210.06318.95
5.4.260.0230.04818.94
5.4.250.0100.06419.00
5.4.240.0160.06219.13
5.4.230.0200.05018.97
5.4.220.0260.04318.91
5.4.210.0180.05318.85
5.4.200.0170.05318.97
5.4.190.0190.07518.94
5.4.180.0070.06318.85
5.4.170.0260.06118.94
5.4.160.0130.07718.99
5.4.150.0100.06219.00
5.4.140.0200.05116.63
5.4.130.0210.05716.53
5.4.120.0140.06816.67
5.4.110.0130.06616.53
5.4.100.0150.06916.71
5.4.90.0140.06616.57
5.4.80.0130.06516.40
5.4.70.0250.05716.66
5.4.60.0130.06816.41
5.4.50.0210.04516.39
5.4.40.0100.05516.67
5.4.30.0200.04916.38
5.4.20.0110.07316.61
5.4.10.0160.04916.38
5.4.00.0170.06216.05
5.3.290.0200.04814.54
5.3.280.0160.06214.89
5.3.270.0100.05614.89
5.3.260.0100.05414.65
5.3.250.0170.05514.91
5.3.240.0230.04814.59
5.3.230.0210.05314.88
5.3.220.0150.05414.73
5.3.210.0270.06614.62
5.3.200.0090.05814.74
5.3.190.0100.06914.84
5.3.180.0100.06114.78
5.3.170.0140.06414.44
5.3.160.0100.07014.86
5.3.150.0190.07114.84
5.3.140.0130.06014.87
5.3.130.0100.05614.67
5.3.120.0120.07414.44
5.3.110.0170.06214.84
5.3.100.0150.06914.23
5.3.90.0090.06613.90
5.3.80.0190.06114.23
5.3.70.0150.05614.30
5.3.60.0140.05314.05
5.3.50.0070.07714.00
5.3.40.0120.05114.06
5.3.30.0090.07713.96
5.3.20.0070.05413.81
5.3.10.0190.05813.77
5.3.00.0190.06013.84
5.2.170.0090.04711.32
5.2.160.0100.04011.34
5.2.150.0180.03611.13
5.2.140.0100.04611.18
5.2.130.0160.04911.27
5.2.120.0160.04911.30
5.2.110.0130.05011.14
5.2.100.0070.05711.28
5.2.90.0100.05311.09
5.2.80.0030.06610.96
5.2.70.0130.05910.97
5.2.60.0220.02811.32
5.2.50.0090.06011.21
5.2.40.0000.05411.20
5.2.30.0130.03611.08
5.2.20.0100.05211.23
5.2.10.0040.05111.03
5.2.00.0140.03410.91
5.1.60.0190.02510.29
5.1.50.0190.02910.01
5.1.40.0070.03310.18
5.1.30.0180.02510.50
5.1.20.0060.03810.31
5.1.10.0040.04210.36
5.1.00.0060.04910.27
5.0.50.0070.0308.73
5.0.40.0100.0238.66
5.0.30.0060.0608.27
5.0.20.0100.0358.17
5.0.10.0100.0258.06
5.0.00.0100.0378.25
4.4.90.0130.0225.94
4.4.80.0160.0165.93
4.4.70.0080.0195.91
4.4.60.0090.0185.94
4.4.50.0040.0225.93
4.4.40.0070.0365.98
4.4.30.0040.0255.95
4.4.20.0070.0205.93
4.4.10.0090.0256.02
4.4.00.0040.0365.90
4.3.110.0000.0285.91
4.3.100.0100.0265.89
4.3.90.0040.0325.88
4.3.80.0000.0375.84
4.3.70.0060.0195.86
4.3.60.0000.0275.78
4.3.50.0030.0305.86
4.3.40.0030.0375.85
4.3.30.0090.0305.78
4.3.20.0040.0215.78
4.3.10.0030.0225.78
4.3.00.0000.0265.78

preferences:
135.48 ms | 1394 KiB | 7 Q