3v4l.org

run code in 300+ PHP versions simultaneously
<?php function craft_bomb() { $array = [1, [2, 3]]; $array[1][1] = &$array; return $array; } $bomb = craft_bomb(); $local = [1, [2, 3]]; $local[1][1] = &$local; var_dump($bomb); var_dump($local);

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.130.0030.00716.63
8.3.120.0040.00418.87
8.3.110.0110.00716.62
8.3.100.0030.00624.06
8.3.90.0040.00426.77
8.3.80.0110.00018.43
8.3.70.0110.00718.18
8.3.60.0120.00916.88
8.3.50.0080.01123.74
8.3.40.0120.00318.82
8.3.30.0040.01218.59
8.3.20.0030.00524.18
8.3.10.0090.00924.66
8.3.00.0030.00626.16
8.2.250.0040.00416.48
8.2.240.0040.00419.06
8.2.230.0040.00420.94
8.2.220.0050.00337.54
8.2.210.0080.00026.77
8.2.200.0090.00018.29
8.2.190.0100.01016.63
8.2.180.0140.00725.92
8.2.170.0040.01118.91
8.2.160.0100.01022.96
8.2.150.0150.00025.66
8.2.140.0040.00424.66
8.2.130.0060.01226.16
8.2.120.0040.00420.91
8.2.110.0060.00320.39
8.2.100.0000.01117.72
8.2.90.0050.00317.63
8.2.80.0030.00918.78
8.2.70.0050.00317.50
8.2.60.0060.00318.04
8.2.50.0070.00018.10
8.2.40.0040.00419.34
8.2.30.0080.00019.11
8.2.20.0040.00417.96
8.2.10.0080.00019.16
8.2.00.0070.00019.18
8.1.300.0150.00020.19
8.1.290.0080.00418.88
8.1.280.0110.00425.92
8.1.270.0080.00024.66
8.1.260.0070.00726.35
8.1.250.0080.00028.09
8.1.240.0060.00322.74
8.1.230.0060.00620.92
8.1.220.0030.00618.56
8.1.210.0040.00418.77
8.1.200.0080.00017.35
8.1.190.0000.00817.22
8.1.180.0040.00418.10
8.1.170.0000.00818.58
8.1.160.0000.00819.00
8.1.150.0000.00718.77
8.1.140.0040.00418.88
8.1.130.0080.00017.25
8.1.120.0040.00417.30
8.1.110.0070.00017.27
8.1.100.0000.00717.23
8.1.90.0000.00717.34
8.1.80.0000.00917.42
8.1.70.0060.00317.27
8.1.60.0000.00917.50
8.1.50.0060.00317.48
8.1.40.0000.00817.54
8.1.30.0030.00517.66
8.1.20.0040.00417.62
8.1.10.0040.00417.44
8.1.00.0040.00417.42
8.0.300.0030.00618.77
8.0.290.0040.00416.63
8.0.280.0030.00318.25
8.0.270.0040.00416.79
8.0.260.0070.00016.75
8.0.250.0030.00316.85
8.0.240.0040.00416.85
8.0.230.0030.00316.77
8.0.220.0030.00316.76
8.0.210.0030.00316.80
8.0.200.0000.00716.77
8.0.190.0040.00416.87
8.0.180.0040.00416.91
8.0.170.0030.00616.71
8.0.160.0050.00316.78
8.0.150.0060.00316.77
8.0.140.0000.00716.67
8.0.130.0030.00313.21
8.0.120.0000.00816.82
8.0.110.0070.00016.90
8.0.100.0000.00716.68
8.0.90.0000.00816.63
8.0.80.0060.01016.78
8.0.70.0000.00816.82
8.0.60.0030.00316.85
8.0.50.0040.00416.71
8.0.30.0080.00817.32
8.0.20.0100.01016.73
8.0.10.0000.00817.01
8.0.00.0070.01316.81
7.4.330.0030.00315.55
7.4.320.0000.00616.30
7.4.300.0040.00416.50
7.4.290.0000.00716.41
7.4.280.0030.00616.53
7.4.270.0000.00716.64
7.4.260.0000.00613.28
7.4.250.0030.00316.36
7.4.240.0040.00416.54
7.4.230.0000.00916.48
7.4.220.0020.00516.60
7.4.210.0070.00616.65
7.4.200.0070.00016.53
7.4.130.0110.01116.36
7.4.120.0330.01816.69
7.4.110.0270.02116.25
7.4.100.0160.00316.36
7.4.90.0130.01316.45
7.4.80.0090.01216.61
7.4.70.0140.00616.45
7.4.60.0190.00416.49
7.4.50.0240.00516.17
7.4.40.0140.00816.55
7.4.30.0110.01216.62
7.4.20.0140.01416.43
7.4.10.0250.00316.63
7.4.00.0050.01816.29
7.3.330.0000.00716.29
7.3.320.0000.00513.25
7.3.310.0030.00316.18
7.3.300.0000.00616.16
7.3.290.0080.00816.31
7.3.260.0090.00916.29
7.3.250.0270.02616.27
7.3.240.0380.02016.52
7.3.230.0180.00416.61
7.3.220.0220.01516.56
7.3.210.0130.00616.27
7.3.200.0190.01016.38
7.3.190.0140.00716.30
7.3.180.0150.00916.27
7.3.170.0140.00816.56
7.3.160.0180.00416.54
7.3.150.0130.01016.68
7.3.140.0080.01116.55
7.3.130.0100.01316.20
7.3.120.0240.00016.27
7.3.110.0170.00416.54
7.3.100.0070.01416.23
7.3.90.0200.00316.57
7.3.80.0220.00316.20
7.3.70.0190.00416.39
7.3.60.0190.00816.37
7.3.50.0090.01416.31
7.3.40.0060.01516.32
7.3.30.0160.00416.29
7.3.20.0120.00816.47
7.3.10.0100.01116.49
7.3.00.0130.00816.23

preferences:
26.68 ms | 403 KiB | 5 Q