3v4l.org

run code in 300+ PHP versions simultaneously
<?php $x = array(0); // let the current overflow next($x); // the aliasing here... //$z = &$x; // ... forces this assignment to be executed istantly (no copy-on-write) $y = $x; // $y was reset, but not $x, which makes sense, echo "x: " . current($x) . "\n"; echo "y: " . current($y) . "\n"; ?>

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.0110.00416.36
8.3.50.0110.00822.05
8.3.40.0140.00418.55
8.3.30.0030.01019.09
8.3.20.0030.00620.25
8.3.10.0030.00523.66
8.3.00.0000.00719.05
8.2.180.0070.01116.63
8.2.170.0110.00722.96
8.2.160.0090.00620.39
8.2.150.0000.00824.18
8.2.140.0080.00024.66
8.2.130.0070.00026.16
8.2.120.0000.00720.77
8.2.110.0030.00619.39
8.2.100.0040.00817.91
8.2.90.0040.00419.17
8.2.80.0050.00317.97
8.2.70.0040.00417.50
8.2.60.0030.00617.93
8.2.50.0040.00418.07
8.2.40.0030.00521.16
8.2.30.0000.00718.23
8.2.20.0070.00017.56
8.2.10.0070.00018.23
8.2.00.0000.00817.75
8.1.280.0140.00325.92
8.1.270.0080.00023.93
8.1.260.0000.00826.35
8.1.250.0070.00028.09
8.1.240.0060.00321.31
8.1.230.0090.00318.95
8.1.220.0000.00817.79
8.1.210.0000.00818.77
8.1.200.0060.00317.23
8.1.190.0050.00317.23
8.1.180.0080.00018.10
8.1.170.0000.00818.45
8.1.160.0050.00221.88
8.1.150.0030.00618.64
8.1.140.0070.00017.41
8.1.130.0000.00717.79
8.1.120.0000.00717.51
8.1.110.0040.00417.51
8.1.100.0040.00417.49
8.1.90.0000.00917.34
8.1.80.0040.00417.41
8.1.70.0040.00417.48
8.1.60.0030.00517.49
8.1.50.0000.00817.40
8.1.40.0040.00417.41
8.1.30.0050.00517.63
8.1.20.0050.00217.64
8.1.10.0040.00417.57
8.1.00.0040.00417.36
8.0.300.0000.00718.77
8.0.290.0050.00217.18
8.0.280.0030.00318.50
8.0.270.0000.00717.26
8.0.260.0060.00017.27
8.0.250.0030.00317.02
8.0.240.0000.00816.97
8.0.230.0050.00216.80
8.0.220.0030.00316.86
8.0.210.0060.00316.80
8.0.200.0000.00717.00
8.0.190.0060.00316.97
8.0.180.0000.00716.94
8.0.170.0030.00516.92
8.0.160.0030.00516.79
8.0.150.0030.00316.88
8.0.140.0050.00316.86
8.0.130.0000.00813.34
8.0.120.0050.00316.87
8.0.110.0040.00416.84
8.0.100.0040.00416.70
8.0.90.0000.00716.91
8.0.80.0060.01016.86
8.0.70.0000.00816.74
8.0.60.0070.00016.80
8.0.50.0030.00516.71
8.0.30.0120.00716.99
8.0.20.0140.00617.40
8.0.10.0000.00717.00
8.0.00.0110.00616.74
7.4.330.0000.00715.00
7.4.320.0030.00316.51
7.4.300.0030.00316.56
7.4.290.0030.00316.39
7.4.280.0060.00016.33
7.4.270.0040.00416.54
7.4.260.0030.00616.52
7.4.250.0000.00716.39
7.4.240.0030.00316.51
7.4.230.0000.00716.38
7.4.220.0180.00016.54
7.4.210.0090.00816.57
7.4.200.0030.00316.34
7.4.190.0030.00316.30
7.4.160.0090.00616.29
7.4.150.0060.01317.40
7.4.140.0050.01417.86
7.4.130.0100.00716.32
7.4.120.0110.00616.45
7.4.110.0040.01316.38
7.4.100.0060.01316.43
7.4.90.0090.00916.66
7.4.80.0090.00919.39
7.4.70.0090.00616.34
7.4.60.0160.00416.43
7.4.50.0050.00016.58
7.4.40.0120.00416.49
7.4.30.0070.01016.43
7.4.00.0060.00314.89
7.3.330.0030.00313.06
7.3.320.0030.00313.05
7.3.310.0050.00316.32
7.3.300.0000.00716.16
7.3.290.0000.01416.37
7.3.280.0060.01016.27
7.3.270.0110.01217.40
7.3.260.0090.00916.29
7.3.250.0140.01016.31
7.3.240.0120.00916.46
7.3.230.0100.00716.70
7.3.210.0090.00916.24
7.3.200.0100.00719.39
7.3.190.0100.01316.54
7.3.180.0040.01216.55
7.3.170.0080.00716.48
7.3.160.0100.00716.15
7.3.120.0000.01814.68
7.3.10.0090.00316.66
7.3.00.0040.00816.70
7.2.330.0060.01316.62
7.2.320.0070.01116.73
7.2.310.0040.01816.66
7.2.300.0160.00816.53
7.2.290.0120.01016.45
7.2.130.0060.01017.01
7.2.120.0060.00916.86
7.2.110.0040.01116.65
7.2.100.0090.00616.90
7.2.90.0040.00716.95
7.2.80.0040.01216.86
7.2.70.0060.00917.03
7.2.60.0060.00716.72
7.2.50.0030.01016.79
7.2.40.0090.00616.79
7.2.30.0040.01416.82
7.2.20.0040.00816.79
7.2.10.0120.00616.91
7.2.00.0040.01418.08
7.1.250.0050.00515.80
7.1.200.0070.01015.47
7.1.100.0030.00918.02
7.1.70.0040.00416.80
7.1.60.0110.01419.46
7.1.50.0070.01416.89
7.1.00.0000.08022.54
7.0.200.0000.00716.81
7.0.140.0070.07022.04
7.0.60.0130.07320.02
7.0.50.0100.07717.90
7.0.40.0130.03319.90
7.0.30.0400.05320.02
7.0.20.0370.07320.21
7.0.10.0070.06320.27
7.0.00.0100.07320.13
5.6.280.0070.07021.09
5.6.210.0170.07320.70
5.6.200.0170.07318.12
5.6.190.0100.04720.39
5.6.180.0230.07320.48
5.6.170.0270.05720.38
5.6.160.0070.05320.70
5.6.150.0030.05318.24
5.6.140.0100.05718.10
5.6.130.0070.03718.21
5.6.120.0030.05721.01
5.6.110.0070.06021.11
5.6.100.0030.09021.10
5.6.90.0070.08721.11
5.6.80.0170.07720.42
5.5.350.4170.04020.38
5.5.340.0230.05717.91
5.5.330.0030.04020.22
5.5.320.0300.05320.18
5.5.310.0330.04020.41
5.5.300.0130.05318.01
5.5.290.0070.08017.98
5.5.280.0070.04020.68
5.5.270.0030.05320.86
5.5.260.0100.07020.87
5.5.250.0130.04020.61
5.5.240.0000.06020.07
5.4.450.1930.05319.26
5.4.440.1670.03719.23
5.4.430.0270.03719.40
5.4.420.0070.03719.45
5.4.410.0030.04019.12
5.4.400.1470.04019.24
5.4.390.1670.04018.91
5.4.380.1570.04018.91
5.4.370.1530.03719.24
5.4.360.1630.03719.08
5.4.350.1700.04318.80
5.4.340.1670.03719.07
5.4.320.1700.03719.10
5.4.310.1870.03319.07
5.4.300.1770.03718.80
5.4.290.1530.04319.24
5.4.280.1700.03319.23
5.4.270.1700.03719.23
5.4.260.1930.04318.77
5.4.250.1770.03018.90
5.4.240.2100.03319.12
5.4.230.1230.04719.23
5.4.220.1570.04318.77
5.4.210.1800.04318.79
5.4.200.2030.04319.14
5.4.190.1830.03719.07
5.4.180.1830.03719.20
5.4.170.1700.04018.90
5.4.160.2000.03719.22
5.4.150.1800.03719.13
5.4.140.2030.04716.37
5.4.130.1900.03316.27
5.4.120.1730.03716.22
5.4.110.1730.03716.30
5.4.100.1870.04316.40
5.4.90.2000.05016.38
5.4.80.1900.04316.32
5.4.70.1770.03716.37
5.4.60.1730.03716.18
5.4.50.2030.05016.42
5.4.40.1830.03716.36
5.4.30.1870.03316.27
5.4.20.1770.03716.45
5.4.10.1900.06716.27
5.4.00.1870.03715.73
5.3.290.1700.03714.50
5.3.280.1830.04314.43
5.3.270.1830.03714.65
5.3.260.1830.03314.46
5.3.250.1970.04714.55
5.3.240.1970.04714.69
5.3.230.1870.02714.45
5.3.220.0000.06714.40
5.3.210.0070.04314.39
5.3.200.0570.06014.55
5.3.190.1630.05314.65
5.3.180.1700.03714.40
5.3.170.1400.03714.40
5.3.160.0630.03714.50
5.3.150.0230.03014.57
5.3.140.0230.03714.46
5.3.130.0230.06014.59
5.3.120.0230.07014.40
5.3.110.0200.04714.39
5.3.100.0230.05014.13
5.3.90.0200.03013.97
5.3.80.0270.02714.11
5.3.70.0330.06714.06
5.3.60.0270.03714.09
5.3.50.0200.04313.78
5.3.40.0230.04013.89
5.3.30.0430.03713.86
5.3.20.0230.06713.70
5.3.10.0200.06013.49
5.3.00.0100.04313.51
5.2.170.0170.02711.23
5.2.160.0200.02310.95
5.2.150.0130.03011.00
5.2.140.0200.03311.08
5.2.130.0100.04711.12
5.2.120.0170.05311.28
5.2.110.0130.04011.00
5.2.100.0200.03010.96
5.2.90.0200.05711.15
5.2.80.0200.03010.93
5.2.70.0230.05711.19
5.2.60.0170.05710.93
5.2.50.0170.05710.92
5.2.40.0130.04311.08
5.2.30.0130.04311.12
5.2.20.0170.06011.11
5.2.10.0200.05311.08
5.2.00.0170.05710.79
5.1.60.0170.0479.92
5.1.50.0100.0379.99
5.1.40.0130.02310.02
5.1.30.0100.05710.40
5.1.20.0100.02710.25
5.1.10.0130.02710.04
5.1.00.0170.04310.05
5.0.50.0100.0208.47
5.0.40.0100.0438.49
5.0.30.0100.0478.10
5.0.20.0130.0178.12
5.0.10.0100.0408.04
5.0.00.0100.0508.03
4.4.90.0070.0377.88
4.4.80.0070.0237.88
4.4.70.0130.0277.88
4.4.60.0030.0237.88
4.4.50.0130.0277.88
4.4.40.0030.0377.88
4.4.30.0100.0177.88
4.4.20.0100.0337.88
4.4.10.0100.0337.88
4.4.00.0070.0307.88
4.3.110.0070.0377.88
4.3.100.0070.0337.88
4.3.90.0030.0237.88
4.3.80.0030.0307.88
4.3.70.0030.0237.88
4.3.60.0100.0377.88
4.3.50.0030.0277.88
4.3.40.0100.0237.88
4.3.30.0070.0277.88
4.3.20.0030.0277.88
4.3.10.0000.0207.88
4.3.00.0030.0307.88

preferences:
43.79 ms | 401 KiB | 5 Q