3v4l.org

run code in 300+ PHP versions simultaneously
<?php class foo { function muta($bar) { $arr[0] = $this; $new = &$arr[0]; $new = $bar; } } $a = new foo; $a->muta(new stdClass); echo get_class($a);

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)
8.3.60.0080.00818.30
8.3.50.0080.01222.89
8.3.40.0120.00318.84
8.3.30.0070.00719.17
8.3.20.0040.00420.21
8.3.10.0040.00423.64
8.3.00.0040.00419.38
8.2.180.0130.00318.42
8.2.170.0150.00022.96
8.2.160.0030.01020.39
8.2.150.0000.00724.18
8.2.140.0050.00324.66
8.2.130.0080.00026.16
8.2.120.0050.00220.91
8.2.110.0030.00721.18
8.2.100.0070.00417.84
8.2.90.0000.00719.22
8.2.80.0040.00417.97
8.2.70.0060.00317.50
8.2.60.0040.00417.93
8.2.50.0000.00918.07
8.2.40.0000.00918.16
8.2.30.0080.00018.04
8.2.20.0040.00417.69
8.2.10.0070.00018.11
8.2.00.0030.00517.67
8.1.280.0040.01125.92
8.1.270.0060.00323.96
8.1.260.0000.00726.35
8.1.250.0070.00028.09
8.1.240.0060.00321.05
8.1.230.0000.01217.51
8.1.220.0000.00917.91
8.1.210.0050.00318.77
8.1.200.0000.00917.23
8.1.190.0000.00817.35
8.1.180.0040.00418.10
8.1.170.0050.00318.54
8.1.160.0050.00221.95
8.1.150.0000.00818.81
8.1.140.0000.00717.48
8.1.130.0000.00717.69
8.1.120.0060.00317.46
8.1.110.0030.00517.35
8.1.100.0000.00817.41
8.1.90.0030.00617.39
8.1.80.0060.00317.39
8.1.70.0050.00217.25
8.1.60.0040.00417.61
8.1.50.0000.00817.51
8.1.40.0080.00017.41
8.1.30.0050.00317.61
8.1.20.0050.00217.61
8.1.10.0040.00417.52
8.1.00.0060.00317.39
8.0.300.0060.00318.77
8.0.290.0060.00316.75
8.0.280.0070.00018.43
8.0.270.0050.00217.16
8.0.260.0000.00617.18
8.0.250.0000.00616.98
8.0.240.0030.00316.95
8.0.230.0040.00416.82
8.0.220.0030.00316.72
8.0.210.0030.00616.84
8.0.200.0000.00616.95
8.0.190.0070.00016.85
8.0.180.0000.00716.72
8.0.170.0000.00716.73
8.0.160.0040.00416.84
8.0.150.0000.00716.75
8.0.140.0000.00716.82
8.0.130.0000.00613.33
8.0.120.0040.00416.81
8.0.110.0040.00416.86
8.0.100.0000.00816.85
8.0.90.0070.00016.60
8.0.80.0090.00916.80
8.0.70.0050.00216.65
8.0.60.0040.00416.69
8.0.50.0050.00216.84
8.0.30.0120.01217.20
8.0.20.0100.01317.40
8.0.10.0050.00316.80
8.0.00.0110.00616.56
7.4.330.0060.00015.00
7.4.320.0030.00316.54
7.4.300.0050.00316.47
7.4.290.0060.00016.59
7.4.280.0070.00016.48
7.4.270.0040.00416.55
7.4.260.0070.00016.57
7.4.250.0090.00016.39
7.4.240.0040.00416.57
7.4.230.0070.00016.32
7.4.220.0130.00616.70
7.4.210.0060.01516.50
7.4.200.0030.00316.24
7.4.160.0090.00616.43
7.4.150.0120.00617.40
7.4.140.0150.00317.86
7.4.130.0110.00616.44
7.4.120.0050.01216.48
7.4.110.0090.00916.57
7.4.100.0090.00916.39
7.4.90.0100.00716.50
7.4.80.0070.01219.39
7.4.70.0080.01216.41
7.4.60.0060.00916.41
7.4.50.0030.00616.41
7.4.40.0100.00716.30
7.4.30.0060.00916.47
7.4.00.0100.00715.09
7.3.330.0030.00313.32
7.3.320.0070.00013.32
7.3.310.0000.00716.19
7.3.300.0000.00716.10
7.3.290.0110.00416.25
7.3.280.0090.00816.31
7.3.270.0040.01417.40
7.3.260.0070.01416.41
7.3.250.0100.01316.38
7.3.240.0100.01016.23
7.3.230.0070.01016.39
7.3.210.0030.01316.37
7.3.200.0100.00619.39
7.3.190.0060.00916.44
7.3.180.0120.00316.54
7.3.170.0100.00616.50
7.3.160.0070.01116.51
7.2.330.0090.00916.91
7.2.320.0090.00916.75
7.2.310.0100.00716.80
7.2.300.0120.00416.45
7.2.290.0100.01016.55
7.2.00.0080.00419.58
7.1.100.0150.00318.09
7.1.70.0000.00817.01
7.1.60.0130.01019.40
7.1.50.0070.01016.96
7.1.00.0030.07722.46
7.0.200.0030.00316.77
7.0.140.0070.07021.95
7.0.60.0030.08020.07
7.0.50.0070.08017.91
7.0.40.0130.07320.11
7.0.30.0270.05320.07
7.0.20.0270.04320.15
7.0.10.0130.06020.34
7.0.00.0100.06320.02
5.6.210.0130.07720.60
5.6.200.0200.07318.18
5.6.190.0000.04720.62
5.6.180.0400.06720.64
5.6.170.0270.07320.55
5.6.160.0100.04320.57
5.6.150.0000.08318.25
5.6.140.0170.07018.28
5.6.130.0030.07718.15
5.6.120.0070.06321.02
5.6.110.0200.07321.02
5.6.100.0070.05720.97
5.6.90.0070.07021.03
5.6.80.0000.04020.51
5.5.350.0100.07720.43
5.5.340.0200.06718.09
5.5.330.0070.04720.38
5.5.320.0070.06020.20
5.5.310.0300.07020.30
5.5.300.0170.06718.06
5.5.290.0070.08717.93
5.5.280.0070.04020.88
5.5.270.0000.09020.87
5.5.260.0000.09320.97
5.5.250.0030.04320.71
5.5.240.0330.06320.19
5.4.450.0230.05319.34
5.4.440.0630.06019.20
5.4.430.0030.06019.48
5.4.420.0130.07019.68
5.4.410.0100.05319.28
5.4.400.0130.05019.24
5.4.390.0070.06018.97
5.4.380.0070.05318.54
5.4.370.0070.04718.58
5.4.360.0170.04018.65
5.4.350.0110.04312.02
5.4.340.0060.03512.02
5.4.320.0050.03812.50
5.4.310.0060.03712.50
5.4.300.0090.03412.50
5.4.290.0060.03912.49
5.4.280.0020.05312.39
5.4.270.0040.04312.40
5.4.260.0050.03912.39
5.4.250.0070.04912.39
5.4.240.0100.04312.40
5.4.230.0070.03812.39
5.4.220.0080.03912.39
5.4.210.0050.04412.39
5.4.200.0030.03912.39
5.4.190.0080.03312.38
5.4.180.0070.03612.39
5.4.170.0070.03512.40
5.4.160.0080.04012.39
5.4.150.0060.03612.38
5.4.140.0050.03812.07
5.4.130.0070.03312.05
5.4.120.0060.03412.02
5.4.110.0060.03512.01
5.4.100.0020.03912.01
5.4.90.0030.04012.01
5.4.80.0080.03512.02
5.4.70.0080.03312.01
5.4.60.0060.03512.01
5.4.50.0050.03512.01
5.4.40.0050.03512.00
5.4.30.0070.03311.99
5.4.20.0090.03212.00
5.4.10.0040.03812.00
5.4.00.0060.03611.48
5.3.290.0060.04012.80
5.3.280.0050.03912.71
5.3.270.0040.04012.73
5.3.260.0050.03912.72
5.3.250.0080.03612.72
5.3.240.0080.03812.72
5.3.230.0060.03712.71
5.3.220.0070.03612.68
5.3.210.0020.04212.68
5.3.200.0040.03812.68
5.3.190.0070.03612.68
5.3.180.0090.03212.68
5.3.170.0080.04112.67
5.3.160.0100.03212.68
5.3.150.0060.03612.67
5.3.140.0040.03812.66
5.3.130.0050.03912.66
5.3.120.0040.04012.65
5.3.110.0090.03612.66
5.3.100.0070.03612.12
5.3.90.0050.03612.09
5.3.80.0050.03712.09
5.3.70.0040.03712.09
5.3.60.0060.03512.07
5.3.50.0060.03512.03
5.3.40.0070.03512.03
5.3.30.0050.03411.98
5.3.20.0030.03811.77
5.3.10.0070.04111.73
5.3.00.0050.03711.72
5.2.170.0020.0339.22
5.2.160.0040.0309.22
5.2.150.0040.0309.22
5.2.140.0050.0369.22
5.2.130.0090.0329.18
5.2.120.0060.0309.18
5.2.110.0030.0309.18
5.2.100.0070.0259.18
5.2.90.0040.0289.18
5.2.80.0030.0309.17
5.2.70.0060.0309.17
5.2.60.0030.0319.13
5.2.50.0040.0309.09
5.2.40.0030.0309.07
5.2.30.0070.0269.05
5.2.20.0070.0259.04
5.2.10.0020.0298.94
5.2.00.0060.0288.80
5.1.60.0050.0238.09
5.1.50.0060.0258.09
5.1.40.0040.0248.07
5.1.30.0040.0268.41
5.1.20.0030.0278.44
5.1.10.0070.0268.16
5.1.00.0040.0258.16
5.0.50.0020.0226.64
5.0.40.0060.0206.49
5.0.30.0080.0286.31
5.0.20.0070.0156.28
5.0.10.0000.0236.25
5.0.00.0040.0296.25
4.4.90.0030.0204.78
4.4.80.0010.0214.75
4.4.70.0020.0154.75
4.4.60.0020.0164.75
4.4.50.0020.0184.77
4.4.40.0040.0264.71
4.4.30.0020.0164.75
4.4.20.0000.0184.84
4.4.10.0010.0184.85
4.4.00.0020.0284.76
4.3.110.0050.0174.67
4.3.100.0020.0154.66
4.3.90.0030.0134.63
4.3.80.0020.0294.59
4.3.70.0010.0164.63
4.3.60.0010.0164.63
4.3.50.0040.0134.63
4.3.40.0030.0234.54
4.3.30.0020.0193.30
4.3.20.0030.0143.28
4.3.10.0010.0223.24
4.3.00.0100.0237.18

preferences:
38.88 ms | 401 KiB | 5 Q