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.0130.00616.38
8.3.50.0110.00822.78
8.3.40.0070.00718.52
8.3.30.0070.00718.92
8.3.20.0000.00720.01
8.3.10.0040.00423.61
8.3.00.0040.00417.75
8.2.180.0090.01218.54
8.2.170.0110.00422.96
8.2.160.0070.00720.35
8.2.150.0040.00424.18
8.2.140.0000.00824.66
8.2.130.0080.00026.16
8.2.120.0070.00021.02
8.2.110.0060.00319.45
8.2.100.0080.00317.84
8.2.90.0040.00419.89
8.2.80.0070.00020.43
8.2.70.0080.00017.63
8.2.60.0060.00617.80
8.2.50.0030.00618.07
8.2.40.0000.00718.22
8.2.30.0000.00718.09
8.2.20.0080.00017.72
8.2.10.0040.00418.11
8.2.00.0070.00017.80
8.1.280.0070.00725.92
8.1.270.0060.00323.83
8.1.260.0040.00426.35
8.1.250.0000.00728.09
8.1.240.0060.00322.54
8.1.230.0120.00020.88
8.1.220.0060.00317.74
8.1.210.0000.00818.95
8.1.200.0000.01117.13
8.1.190.0000.00817.35
8.1.180.0040.00418.10
8.1.170.0030.00518.66
8.1.160.0040.00422.02
8.1.150.0050.00218.89
8.1.140.0040.00417.38
8.1.130.0000.00717.76
8.1.120.0000.00717.50
8.1.110.0000.00717.34
8.1.100.0040.00417.47
8.1.90.0050.00217.31
8.1.80.0000.00717.48
8.1.70.0000.00717.46
8.1.60.0050.00317.50
8.1.50.0030.00517.41
8.1.40.0030.00617.53
8.1.30.0000.00917.52
8.1.20.0050.00317.57
8.1.10.0070.00017.43
8.1.00.0040.00417.48
8.0.300.0040.00420.15
8.0.290.0030.00516.88
8.0.280.0060.00318.42
8.0.270.0000.00817.36
8.0.260.0060.00018.35
8.0.250.0000.00717.02
8.0.240.0000.00816.88
8.0.230.0070.00016.98
8.0.220.0070.00016.97
8.0.210.0030.00316.93
8.0.200.0030.00316.96
8.0.190.0040.00416.91
8.0.180.0000.00716.95
8.0.170.0000.00716.89
8.0.160.0070.00016.99
8.0.150.0000.00716.95
8.0.140.0000.00816.86
8.0.130.0030.00313.36
8.0.120.0080.00016.89
8.0.110.0000.00816.88
8.0.100.0040.00416.76
8.0.90.0020.00516.95
8.0.80.0070.01116.91
8.0.70.0000.00816.83
8.0.60.0040.00416.86
8.0.50.0000.00717.00
8.0.30.0090.01017.13
8.0.20.0070.01217.40
8.0.10.0050.00317.01
8.0.00.0100.00816.90
7.4.330.0020.00215.07
7.4.320.0060.00016.54
7.4.300.0030.00316.57
7.4.290.0030.00316.48
7.4.280.0050.00316.57
7.4.270.0070.00016.66
7.4.260.0000.00816.55
7.4.250.0040.00416.53
7.4.240.0030.00316.48
7.4.230.0040.00416.63
7.4.220.0030.01616.47
7.4.210.0100.01016.45
7.4.200.0030.00316.49
7.4.160.0080.00816.48
7.4.150.0170.00817.40
7.4.140.0060.01217.86
7.4.130.0040.01216.42
7.4.120.0110.00716.60
7.4.110.0120.00916.32
7.4.100.0140.00316.32
7.4.90.0080.00816.43
7.4.80.0140.00419.39
7.4.70.0030.01416.53
7.4.60.0000.01616.49
7.4.50.0000.00816.57
7.4.40.0120.00616.34
7.4.30.0090.00616.34
7.4.00.0070.01115.09
7.3.330.0000.00613.19
7.3.320.0000.00513.13
7.3.310.0030.00316.46
7.3.300.0000.00716.22
7.3.290.0060.00816.38
7.3.280.0070.00916.29
7.3.270.0090.01217.40
7.3.260.0140.00316.37
7.3.240.0060.01016.35
7.3.230.0080.00816.43
7.3.210.0100.00716.38
7.3.200.0160.00719.39
7.3.190.0060.01116.37
7.3.180.0090.00616.41
7.3.170.0060.00916.40
7.3.160.0030.01616.30
7.3.10.0190.00516.26
7.3.00.0160.00316.54
7.2.330.0090.00916.59
7.2.320.0100.01016.59
7.2.310.0070.01016.63
7.2.300.0070.01016.73
7.2.290.0090.00816.73
7.2.130.0060.00916.39
7.2.120.0200.01116.30
7.2.110.0110.01216.63
7.2.100.0250.00316.55
7.2.90.0140.00915.95
7.2.80.0190.00816.21
7.2.70.0130.01716.89
7.2.60.0160.00616.77
7.2.50.0150.00816.46
7.2.40.0140.00916.59
7.2.30.0130.01316.14
7.2.20.0130.00716.67
7.2.10.0100.01216.74
7.2.00.0110.00617.91
7.1.250.0180.00915.34
7.1.200.0050.01115.80
7.1.100.0000.00818.16
7.1.70.0040.00416.89
7.1.60.0110.01419.40
7.1.50.0170.01334.57
7.1.00.0030.07722.36
7.0.200.0050.00316.72
7.0.140.0030.07321.95
7.0.60.0070.04319.78
7.0.50.0030.07317.87
7.0.40.0070.04020.24
7.0.30.0300.06720.30
7.0.20.0330.05020.21
7.0.10.0070.04720.06
7.0.00.0070.08720.09
5.6.280.0030.07321.08
5.6.210.0000.04720.67
5.6.200.0070.08018.19
5.6.190.0070.09020.42
5.6.180.0230.08320.48
5.6.170.0430.06320.48
5.6.160.0100.06020.60
5.6.150.0130.07718.23
5.6.140.0070.04018.15
5.6.130.0170.07318.23
5.6.120.0000.04721.00
5.6.110.0100.08321.08
5.6.100.0030.04021.11
5.6.90.0000.04321.11
5.6.80.0000.06320.38
5.5.350.0270.07720.30
5.5.340.0100.07717.98
5.5.330.0030.04720.25
5.5.320.0300.07320.36
5.5.310.0330.05320.43
5.5.300.0030.08017.99
5.5.290.0100.07717.98
5.5.280.0030.07720.77
5.5.270.0100.07320.73
5.5.260.0070.08020.76
5.5.250.0030.05720.71
5.5.240.0000.08020.35
5.4.450.0930.05319.17
5.4.440.0200.07019.64
5.4.430.0170.05319.43
5.4.420.0170.05019.23
5.4.410.0230.05319.42
5.4.400.0870.05318.96
5.4.390.0770.05319.23
5.4.380.0100.06318.79
5.4.370.0070.05718.62
5.4.360.0170.05318.77
5.4.350.0110.04112.02
5.4.340.0050.03612.01
5.4.320.0070.03612.50
5.4.310.0070.04012.50
5.4.300.0070.04112.50
5.4.290.0050.03912.50
5.4.280.0060.03612.39
5.4.270.0090.04012.39
5.4.260.0050.03812.39
5.4.250.0050.03912.39
5.4.240.0040.03712.39
5.4.230.0060.03812.39
5.4.220.0100.04512.38
5.4.210.0080.04312.39
5.4.200.0080.04212.39
5.4.190.0060.04512.38
5.4.180.0090.04212.38
5.4.170.0040.03712.39
5.4.160.0070.03912.39
5.4.150.0080.03312.38
5.4.140.0060.03612.07
5.4.130.0080.03412.06
5.4.120.0050.03612.02
5.4.110.0060.03712.02
5.4.100.0080.03812.02
5.4.90.0050.03912.02
5.4.80.0100.03312.01
5.4.70.0080.03212.01
5.4.60.0060.03412.00
5.4.50.0070.03312.01
5.4.40.0080.04012.00
5.4.30.0040.04211.99
5.4.20.0080.03712.00
5.4.10.0080.03212.00
5.4.00.0060.03511.48
5.3.290.0040.04112.80
5.3.280.0100.03512.71
5.3.270.0050.04012.73
5.3.260.0060.04312.72
5.3.250.0060.04312.72
5.3.240.0060.04012.72
5.3.230.0040.04112.70
5.3.220.0090.03512.68
5.3.210.0060.04012.68
5.3.200.0110.04812.68
5.3.190.0080.04412.68
5.3.180.0100.03912.67
5.3.170.0110.03712.67
5.3.160.0070.04112.67
5.3.150.0070.03612.67
5.3.140.0050.03812.66
5.3.130.0040.04012.66
5.3.120.0070.03912.66
5.3.110.0070.03812.66
5.3.100.0070.03512.12
5.3.90.0070.04112.10
5.3.80.0060.03612.09
5.3.70.0060.03612.09
5.3.60.0100.04012.08
5.3.50.0070.04912.02
5.3.40.0110.04512.02
5.3.30.0070.03811.98
5.3.20.0040.04511.76
5.3.10.0030.03711.73
5.3.00.0050.03811.72
5.2.170.0040.0329.22
5.2.160.0060.0289.22
5.2.150.0070.0429.22
5.2.140.0050.0359.21
5.2.130.0040.0299.18
5.2.120.0050.0309.18
5.2.110.0020.0339.18
5.2.100.0050.0289.18
5.2.90.0040.0299.18
5.2.80.0090.0269.17
5.2.70.0040.0309.17
5.2.60.0060.0289.13
5.2.50.0070.0279.09
5.2.40.0060.0279.07
5.2.30.0050.0429.05
5.2.20.0090.0359.04
5.2.10.0050.0288.94
5.2.00.0110.0348.80
5.1.60.0050.0358.09
5.1.50.0090.0318.09
5.1.40.0100.0298.07
5.1.30.0040.0268.41
5.1.20.0050.0268.44
5.1.10.0050.0268.16
5.1.00.0040.0268.16
5.0.50.0040.0216.64
5.0.40.0040.0206.50
5.0.30.0020.0406.32
5.0.20.0030.0206.28
5.0.10.0020.0216.26
5.0.00.0020.0326.25
4.4.90.0040.0154.78
4.4.80.0040.0144.76
4.4.70.0050.0134.75
4.4.60.0030.0164.75
4.4.50.0040.0144.77
4.4.40.0030.0264.71
4.4.30.0040.0154.76
4.4.20.0020.0184.85
4.4.10.0040.0214.85
4.4.00.0030.0324.76
4.3.110.0050.0204.66
4.3.100.0130.0174.66
4.3.90.0020.0154.63
4.3.80.0020.0254.58
4.3.70.0010.0164.63
4.3.60.0050.0124.63
4.3.50.0040.0144.63
4.3.40.0040.0224.54
4.3.30.0010.0173.30
4.3.20.0020.0163.28
4.3.10.0030.0153.24
4.3.00.0200.0207.17

preferences:
40.58 ms | 401 KiB | 5 Q