3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A{ function do_stuff(&$b) { $defined = 0; trigger_error("If I fixed the undefined variable but enabled this line instead, it will also turn b from an object into a string! So user-triggered notices bork it as well."); $x = $undefined || $defined ? 14 : 0; var_dump('In function:', $b); } } class B{} $a = new A(); $b = new B(); $a->do_stuff($b); var_dump('After function:', $b);

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.0070.01016.88
8.3.50.0150.00522.04
8.3.40.0030.01718.83
8.3.30.0110.00319.11
8.3.20.0070.00020.33
8.3.10.0040.00421.82
8.3.00.0030.00517.91
8.2.180.0110.00316.50
8.2.170.0110.01122.96
8.2.160.0070.00720.35
8.2.150.0040.00424.18
8.2.140.0000.00824.66
8.2.130.0070.01126.16
8.2.120.0000.00719.76
8.2.110.0080.00421.04
8.2.100.0080.00318.16
8.2.90.0040.00419.08
8.2.80.0080.00017.97
8.2.70.0030.00617.63
8.2.60.0090.00517.43
8.2.50.0070.00418.07
8.2.40.0040.00418.16
8.2.30.0040.00418.02
8.2.20.0080.00017.64
8.2.10.0000.00718.00
8.2.00.0000.00817.85
8.1.280.0100.01025.92
8.1.270.0040.00423.66
8.1.260.0040.00426.35
8.1.250.0000.00728.09
8.1.240.0030.00621.43
8.1.230.0080.00419.48
8.1.220.0080.00017.74
8.1.210.0040.00418.77
8.1.200.0050.00517.35
8.1.190.0080.00017.23
8.1.180.0040.00418.10
8.1.170.0050.00318.65
8.1.160.0040.00422.01
8.1.150.0030.00618.89
8.1.140.0000.00717.37
8.1.130.0050.00317.75
8.1.120.0000.00717.36
8.1.110.0000.00817.32
8.1.100.0030.00317.47
8.1.90.0000.00717.36
8.1.80.0000.00817.35
8.1.70.0000.00717.34
8.1.60.0080.00017.48
8.1.50.0030.00617.47
8.1.40.0040.00417.50
8.1.30.0000.00917.58
8.1.20.0040.00417.50
8.1.10.0060.00317.49
8.1.00.0040.00417.30
8.0.300.0030.00618.77
8.0.290.0070.00016.88
8.0.280.0000.00818.44
8.0.270.0060.00317.21
8.0.260.0070.00017.20
8.0.250.0070.00016.93
8.0.240.0000.00817.01
8.0.230.0020.00516.88
8.0.220.0000.00716.84
8.0.210.0000.00716.85
8.0.200.0000.00716.95
8.0.190.0040.00416.92
8.0.180.0040.00416.95
8.0.170.0040.00417.07
8.0.160.0000.00716.97
8.0.150.0000.00716.89
8.0.140.0040.00416.89
8.0.130.0030.00313.39
8.0.120.0040.00416.81
8.0.110.0000.00716.93
8.0.100.0000.00716.84
8.0.90.0040.00416.82
8.0.80.0120.01016.88
8.0.70.0050.00316.89
8.0.60.0030.00517.02
8.0.50.0050.00216.84
8.0.30.0100.01017.18
8.0.20.0120.00817.40
8.0.10.0040.00417.14
8.0.00.0120.00716.78
7.4.330.0060.00015.13
7.4.320.0030.00316.43
7.4.300.0060.00016.59
7.4.290.0040.00416.61
7.4.280.0080.00016.48
7.4.270.0040.00416.43
7.4.260.0040.00416.61
7.4.250.0030.00316.47
7.4.240.0030.00516.52
7.4.230.0030.00316.54
7.4.220.0130.00616.71
7.4.210.0090.01316.59
7.4.200.0070.00016.63
7.4.160.0130.00316.50
7.4.150.0140.00417.40
7.4.140.0130.00517.86
7.4.130.0070.01016.56
7.4.120.0080.00916.53
7.4.110.0040.01816.52
7.4.100.0080.00916.61
7.4.90.0150.00316.41
7.4.80.0090.00919.39
7.4.70.0140.00316.57
7.4.60.0110.00716.46
7.4.50.0050.00316.63
7.4.40.0060.00916.55
7.4.30.0100.00716.53
7.4.00.0080.00414.84
7.3.330.0030.00313.34
7.3.320.0000.00513.31
7.3.310.0070.00016.26
7.3.300.0060.00016.31
7.3.290.0120.00816.38
7.3.280.0070.01016.37
7.3.270.0110.00717.40
7.3.260.0120.00916.58
7.3.250.0090.00816.32
7.3.240.0060.01516.49
7.3.230.0140.00316.48
7.3.210.0090.00816.56
7.3.200.0080.00819.39
7.3.190.0130.00916.27
7.3.180.0070.01416.42
7.3.170.0110.00716.28
7.3.160.0110.00416.41
7.3.120.0060.00617.15
7.3.110.0110.00417.15
7.3.100.0030.00917.15
7.3.90.0040.00817.15
7.3.80.0060.00917.15
7.3.70.0040.01117.15
7.3.60.0080.00817.15
7.3.50.0040.01117.15
7.3.40.0070.00317.15
7.3.30.0060.00617.15
7.3.20.0040.01117.15
7.3.10.0070.00816.58
7.3.00.0050.00716.58
7.2.330.0090.00916.36
7.2.320.0090.00816.59
7.2.310.0000.01716.73
7.2.300.0030.01416.73
7.2.290.0090.01216.69
7.2.240.0000.01617.15
7.2.230.0000.01717.15
7.2.220.0070.00417.15
7.2.210.0110.00417.15
7.2.200.0060.00917.15
7.2.190.0040.01117.15
7.2.180.0000.01517.15
7.2.170.0000.01317.15
7.2.160.0040.01117.15
7.2.150.0050.00517.15
7.2.140.0090.00617.15
7.2.130.0140.00316.67
7.2.120.0110.00416.85
7.2.110.0080.00816.82
7.2.100.0110.01017.06
7.2.90.0140.00716.93
7.2.80.0120.00716.76
7.2.70.0110.00916.75
7.2.60.0120.00916.71
7.2.50.0100.01116.83
7.2.40.0100.01216.76
7.2.30.0110.00816.72
7.2.20.0090.01116.81
7.2.10.0050.01416.62
7.2.00.0050.00917.67
7.1.330.0090.00417.15
7.1.320.0060.00917.15
7.1.310.0070.00317.15
7.1.300.0100.00717.15
7.1.290.0000.01217.15
7.1.280.0030.00617.15
7.1.270.0100.00317.15
7.1.260.0060.01017.15
7.1.250.0100.00416.21
7.1.100.0040.00817.91
7.1.70.0070.00417.02
7.1.60.0070.01419.40
7.1.50.0040.00816.69
7.1.00.0100.07022.51
7.0.200.0000.00716.55
7.0.140.0100.06722.09
7.0.60.0070.06020.03
7.0.50.0000.04317.79
7.0.40.0100.04320.11
7.0.30.0230.05720.06
7.0.20.0230.06020.22
7.0.10.0100.07720.22
7.0.00.0100.06320.24
5.6.280.0000.07721.02
5.6.210.0070.06020.55
5.6.200.0000.07718.15
5.6.190.0230.07020.64
5.6.180.0200.05720.60
5.6.170.0230.08020.51
5.6.160.0100.08020.45
5.6.150.0000.04718.18
5.6.140.0030.09018.18
5.6.130.0170.07318.18
5.6.120.0130.08021.01
5.6.110.0100.06721.11
5.6.100.0070.07021.11
5.6.90.0070.04320.98
5.6.80.0100.06720.38
5.5.350.0170.03320.42
5.5.340.0130.07718.07
5.5.330.0070.05720.31
5.5.320.0230.08720.35
5.5.310.0330.06720.30
5.5.300.0070.04017.98
5.5.290.0030.04317.98
5.5.280.0130.05020.80
5.5.270.0100.04720.64
5.5.260.0100.07320.84
5.5.250.0200.04020.69
5.5.240.0130.07320.27
5.4.450.0730.05719.48
5.4.440.0630.06719.48
5.4.430.0700.06719.61
5.4.420.0100.05719.51
5.4.410.0070.05719.27
5.4.400.0030.06019.22
5.4.390.0130.06318.98
5.4.380.0300.05318.84
5.4.370.0400.07018.72
5.4.360.0330.05318.76
5.4.350.0130.06318.62
5.4.340.0230.06018.78
5.4.320.0150.08012.50
5.4.310.0080.03912.50
5.4.300.0070.04412.50
5.4.290.0070.03612.50
5.4.280.0090.03112.40
5.4.270.0090.03312.39
5.4.260.0060.04212.39
5.4.250.0050.03712.39
5.4.240.0080.03312.39
5.4.230.0050.04512.38
5.4.220.0110.03512.39
5.4.210.0030.03812.39
5.4.200.0090.04112.38
5.4.190.0040.03812.38
5.4.180.0100.03312.39
5.4.170.0050.03612.40
5.4.160.0110.03312.39
5.4.150.0060.03712.39
5.4.140.0080.03912.07
5.4.130.0080.03212.05
5.4.120.0070.03312.02
5.4.110.0070.03312.01
5.4.100.0070.04412.01
5.4.90.0070.03512.01
5.4.80.0050.03712.01
5.4.70.0050.03412.00
5.4.60.0080.03912.00
5.4.50.0050.04012.00
5.4.40.0060.03812.00
5.4.30.0060.04011.99
5.4.20.0100.03412.00
5.4.10.0100.03412.00
5.4.00.0060.03911.48
5.3.290.0110.06712.80
5.3.280.0070.04012.70
5.3.270.0060.04212.72
5.3.260.0100.03512.71
5.3.250.0060.03712.72
5.3.240.0120.04012.72
5.3.230.0070.04212.71
5.3.220.0070.03612.68
5.3.210.0040.04912.68
5.3.200.0070.03512.68
5.3.190.0100.03812.68
5.3.180.0100.03512.67
5.3.170.0040.04012.67
5.3.160.0030.04212.68
5.3.150.0080.03912.67
5.3.140.0080.03612.66
5.3.130.0070.03712.65
5.3.120.0070.03712.66
5.3.110.0070.03712.66
5.3.100.0040.03812.12
5.3.90.0060.03512.10
5.3.80.0040.03812.09
5.3.70.0080.03812.09
5.3.60.0070.03812.07
5.3.50.0060.03512.03
5.3.40.0080.03312.02
5.3.30.0050.03511.98
5.3.20.0070.03411.77
5.3.10.0060.03411.73
5.3.00.0050.03711.72
5.2.170.0030.0369.22
5.2.160.0070.0339.22
5.2.150.0070.0309.22
5.2.140.0020.0339.22
5.2.130.0090.0249.18
5.2.120.0050.0289.18
5.2.110.0070.0259.18
5.2.100.0080.0259.18
5.2.90.0040.0299.17
5.2.80.0080.0279.17
5.2.70.0040.0369.17
5.2.60.0060.0329.13
5.2.50.0040.0299.09
5.2.40.0060.0279.07
5.2.30.0030.0309.04
5.2.20.0070.0299.04
5.2.10.0070.0248.94
5.2.00.0080.0318.80
5.1.60.0030.0248.09
5.1.50.0030.0298.09
5.1.40.0040.0308.07
5.1.30.0060.0238.41
5.1.20.0060.0328.44
5.1.10.0090.0248.16
5.1.00.0040.0278.16
5.0.50.0050.0196.64
5.0.40.0040.0216.50
5.0.30.0030.0316.32
5.0.20.0030.0246.28
5.0.10.0080.0186.25
5.0.00.0030.0306.25
4.4.90.0030.0164.78
4.4.80.0010.0224.76
4.4.70.0030.0204.76
4.4.60.0020.0154.75
4.4.50.0010.0164.77
4.4.40.0030.0244.71
4.4.30.0040.0204.76
4.4.20.0030.0164.84
4.4.10.0030.0154.85
4.4.00.0010.0264.75
4.3.110.0050.0134.67
4.3.100.0030.0144.66
4.3.90.0040.0134.64
4.3.80.0010.0254.59
4.3.70.0030.0134.63
4.3.60.0030.0144.62
4.3.50.0020.0154.62
4.3.40.0050.0254.53
4.3.30.0020.0183.30
4.3.20.0020.0163.28
4.3.10.0040.0133.23
4.3.00.0070.0238.54

preferences:
41.8 ms | 401 KiB | 5 Q