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 "y: " . current($y) . "\n"; echo "x: " . current($x) . "\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.70.0110.00418.19
8.3.60.0000.01516.38
8.3.50.0100.00822.01
8.3.40.0120.00618.72
8.3.30.0070.00719.04
8.3.20.0040.00420.18
8.3.10.0000.00923.48
8.3.00.0040.00419.05
8.2.180.0110.00718.28
8.2.170.0120.00322.96
8.2.160.0030.01020.39
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0060.00326.16
8.2.120.0050.00320.82
8.2.110.0060.00322.22
8.2.100.0040.00817.91
8.2.90.0040.00419.16
8.2.80.0040.00417.97
8.2.70.0030.00617.63
8.2.60.0110.00017.80
8.2.50.0090.00018.07
8.2.40.0040.00421.06
8.2.30.0050.00218.25
8.2.20.0040.00417.61
8.2.10.0000.00718.10
8.2.00.0070.00017.74
8.1.280.0100.01025.92
8.1.270.0050.00323.96
8.1.260.0080.00026.35
8.1.250.0080.00028.09
8.1.240.0060.00323.96
8.1.230.0110.00019.15
8.1.220.0050.00317.76
8.1.210.0040.00418.77
8.1.200.0000.00917.35
8.1.190.0040.00416.98
8.1.180.0000.00818.10
8.1.170.0000.00818.50
8.1.160.0000.00722.00
8.1.150.0050.00218.70
8.1.140.0000.00717.45
8.1.130.0050.00217.78
8.1.120.0000.00717.52
8.1.110.0000.00717.47
8.1.100.0040.00417.45
8.1.90.0000.00717.44
8.1.80.0080.00017.44
8.1.70.0000.00817.41
8.1.60.0000.00717.47
8.1.50.0040.00417.48
8.1.40.0050.00217.53
8.1.30.0000.00917.57
8.1.20.0050.00317.55
8.1.10.0000.00717.44
8.1.00.0070.00017.46
8.0.300.0040.00418.77
8.0.290.0000.00817.17
8.0.280.0040.00418.35
8.0.270.0030.00317.21
8.0.260.0040.00417.29
8.0.250.0030.00316.86
8.0.240.0070.00016.95
8.0.230.0030.00516.81
8.0.220.0070.00016.86
8.0.210.0030.00716.91
8.0.200.0030.00316.83
8.0.190.0060.00316.92
8.0.180.0030.00516.94
8.0.170.0000.00816.98
8.0.160.0050.00216.77
8.0.150.0040.00416.82
8.0.140.0050.00316.88
8.0.130.0000.00813.30
8.0.120.0020.00516.89
8.0.110.0000.00816.88
8.0.100.0000.00716.89
8.0.90.0050.00316.95
8.0.80.0080.00816.87
8.0.70.0000.00716.73
8.0.60.0070.00016.69
8.0.50.0070.00016.67
8.0.30.0160.00517.01
8.0.20.0150.00317.40
8.0.10.0000.00816.85
8.0.00.0120.00616.86
7.4.330.0030.00315.00
7.4.320.0060.00016.39
7.4.300.0000.00616.43
7.4.290.0070.00016.50
7.4.280.0030.00316.54
7.4.270.0040.00416.54
7.4.260.0030.00316.43
7.4.250.0080.00016.50
7.4.240.0020.00516.52
7.4.230.0000.00716.24
7.4.220.0170.00016.44
7.4.210.0030.01216.56
7.4.200.0050.00216.55
7.4.190.0080.00016.34
7.4.160.0040.01116.51
7.4.150.0110.00917.40
7.4.140.0120.00517.86
7.4.130.0060.01316.47
7.4.120.0070.00916.46
7.4.110.0070.01116.38
7.4.100.0180.00716.54
7.4.90.0070.01516.45
7.4.80.0160.00319.39
7.4.70.0080.00816.41
7.4.60.0090.00916.54
7.4.50.0080.00016.24
7.4.40.0130.00316.34
7.4.30.0140.00316.52
7.4.10.0070.01014.77
7.4.00.0070.01114.87
7.3.330.0030.00313.15
7.3.320.0060.00013.17
7.3.310.0030.00316.36
7.3.300.0040.00416.17
7.3.290.0070.00716.30
7.3.280.0030.01416.28
7.3.270.0110.00617.40
7.3.260.0100.00716.25
7.3.250.0110.01316.56
7.3.240.0110.00716.33
7.3.230.0040.01216.39
7.3.210.0150.00616.27
7.3.200.0040.01219.39
7.3.190.0130.00316.25
7.3.180.0090.00616.76
7.3.170.0120.00316.53
7.3.160.0110.00616.53
7.3.130.0070.01014.77
7.3.120.0060.01114.85
7.3.110.0080.00914.78
7.3.100.0090.00714.77
7.3.90.0050.01214.84
7.3.80.0090.00514.91
7.3.70.0020.00814.65
7.3.60.0100.00514.60
7.3.50.0090.00114.80
7.3.40.0080.00514.87
7.3.30.0050.00714.71
7.3.20.0050.00716.77
7.3.10.0080.01116.38
7.3.00.0100.00816.32
7.2.330.0090.00916.69
7.2.320.0100.01016.44
7.2.310.0130.00316.34
7.2.300.0100.01016.62
7.2.290.0120.00616.64
7.2.260.0100.01015.02
7.2.250.0100.00814.74
7.2.240.0090.00715.07
7.2.230.0070.00814.98
7.2.220.0050.01114.78
7.2.210.0080.00714.82
7.2.200.0030.01314.91
7.2.190.0030.00715.06
7.2.180.0040.00715.13
7.2.170.0020.01214.79
7.2.160.0050.00915.00
7.2.150.0080.00716.78
7.2.140.0010.01216.86
7.2.130.0110.00816.78
7.2.120.0100.00716.71
7.2.110.0080.00616.71
7.2.100.0100.00916.65
7.2.90.0120.00716.60
7.2.80.0110.01116.75
7.2.70.0090.00716.83
7.2.60.0130.00916.82
7.2.50.0100.00916.61
7.2.40.0180.00616.86
7.2.30.0130.00716.73
7.2.20.0060.00816.72
7.2.10.0100.01216.66
7.2.00.0210.01016.78
7.1.330.0030.01315.71
7.1.320.0080.00715.75
7.1.310.0060.01015.61
7.1.300.0080.00315.75
7.1.290.0090.00515.66
7.1.280.0010.01115.83
7.1.270.0060.00615.63
7.1.260.0070.00315.65
7.1.250.0070.01015.47
7.1.240.0040.00715.79
7.1.230.0070.00715.70
7.1.220.0030.00915.75
7.1.210.0070.00515.63
7.1.200.0070.00515.64
7.1.190.0050.00615.71
7.1.180.0020.00915.67
7.1.170.0070.00615.73
7.1.160.0050.00915.75
7.1.150.0020.01115.67
7.1.140.0020.01015.75
7.1.130.0050.00715.64
7.1.120.0070.00815.70
7.1.110.0050.00715.63
7.1.100.0070.00715.72
7.1.90.0090.00515.67
7.1.80.0080.00415.78
7.1.70.0050.00716.12
7.1.60.0060.00816.67
7.1.50.0060.00815.97
7.1.40.0040.01015.56
7.1.30.0090.00315.55
7.1.20.0070.00715.58
7.1.10.0060.00715.71
7.1.00.0060.02317.36
7.0.330.0040.00915.26
7.0.320.0000.01215.37
7.0.310.0020.00915.12
7.0.300.0070.00715.29
7.0.290.0050.00715.17
7.0.280.0050.00815.32
7.0.270.0040.00715.21
7.0.260.0070.00415.25
7.0.250.0070.00415.26
7.0.240.0040.00915.27
7.0.230.0050.00715.38
7.0.220.0040.00415.28
7.0.210.0040.00715.15
7.0.200.0050.00615.66
7.0.190.0040.00515.31
7.0.180.0020.00815.27
7.0.170.0080.00715.42
7.0.160.0080.00615.41
7.0.150.0050.00915.20
7.0.140.0070.02317.04
7.0.130.0050.00715.36
7.0.120.0060.00915.38
7.0.110.0060.00615.27
7.0.100.0030.00915.33
7.0.90.0040.00815.39
7.0.80.0070.00615.20
7.0.70.0040.00815.24
7.0.60.0050.02716.62
7.0.50.0040.02315.93
7.0.40.0030.01915.18
7.0.30.0080.02815.06
7.0.20.0100.01815.08
7.0.10.0090.02615.10
7.0.00.0050.01415.11
5.6.400.0060.00714.20
5.6.390.0030.00814.16
5.6.380.0050.00614.22
5.6.370.0070.00914.28
5.6.360.0040.01014.22
5.6.350.0090.00614.21
5.6.340.0050.00914.30
5.6.330.0110.00414.33
5.6.320.0050.00814.15
5.6.310.0050.00814.19
5.6.300.0050.00714.22
5.6.290.0060.00714.04
5.6.280.0070.02215.97
5.6.270.0030.00914.30
5.6.260.0060.00514.40
5.6.250.0020.01014.28
5.6.240.0020.01214.18
5.6.230.0080.00614.16
5.6.220.0040.01014.09
5.6.210.0070.02015.78
5.6.200.0070.02415.10
5.6.190.0070.02015.83
5.6.180.0070.02715.76
5.6.170.0160.01415.71
5.6.160.0080.02015.86
5.6.150.0070.01515.09
5.6.140.0030.01615.32
5.6.130.0080.02515.21
5.6.120.0060.01515.96
5.6.110.0080.02115.87
5.6.100.0090.01915.97
5.6.90.0050.02916.00
5.6.80.0050.01915.73
5.6.70.0040.00714.18
5.6.60.0050.00914.28
5.6.50.0070.00714.11
5.6.40.0070.00614.33
5.6.30.0060.00614.35
5.6.20.0030.00914.22
5.6.10.0090.00514.38
5.6.00.0080.00614.29
5.5.380.0050.00813.24
5.5.370.0010.01113.27
5.5.360.0040.00813.35
5.5.350.0900.01515.09
5.5.340.0090.02014.47
5.5.330.0020.01715.00
5.5.320.0100.02415.03
5.5.310.0120.02215.21
5.5.300.0050.02614.41
5.5.290.0060.02214.44
5.5.280.0050.02815.19
5.5.270.0090.02215.35
5.5.260.0040.02315.19
5.5.250.0060.01715.06
5.5.240.0080.01915.15
5.5.230.0050.00713.37
5.5.220.0070.00713.18
5.5.210.0020.01113.40
5.5.200.0050.00713.42
5.5.190.0030.00913.19
5.5.180.0040.00513.26
5.5.170.0060.00613.34
5.5.160.0040.00913.10
5.5.150.0040.00713.33
5.5.140.0050.00513.35
5.5.130.0050.00713.35
5.5.120.0030.01113.31
5.5.110.0040.00913.32
5.5.100.0030.00713.42
5.5.90.0050.00713.23
5.5.80.0070.00513.42
5.5.70.0070.00513.37
5.5.60.0050.00613.25
5.5.50.0070.00513.26
5.5.40.0000.00913.28
5.5.30.0080.00513.35
5.5.20.0030.00913.15
5.5.10.0060.00713.29
5.5.00.0050.00613.21
5.4.450.0080.01615.58
5.4.440.0120.01414.85
5.4.430.0130.01314.28
5.4.420.0090.01714.37
5.4.410.0070.01714.30
5.4.400.0110.01214.29
5.4.390.0060.01714.21
5.4.380.0060.01914.11
5.4.370.0080.01614.10
5.4.360.0060.01714.16
5.4.350.0070.01814.11
5.4.340.0060.01814.13
5.4.330.0030.00612.64
5.4.320.0040.01512.59
5.4.310.0040.01512.59
5.4.300.0040.01812.59
5.4.290.0040.01712.59
5.4.280.0030.01912.57
5.4.270.0050.01612.57
5.4.260.0070.01612.57
5.4.250.0070.01212.57
5.4.240.0050.01412.57
5.4.230.0070.01812.56
5.4.220.0050.01812.56
5.4.210.0070.01512.56
5.4.200.0030.01912.56
5.4.190.0040.01412.56
5.4.180.0070.01212.56
5.4.170.0040.01412.57
5.4.160.0070.01312.57
5.4.150.0040.01612.56
5.4.140.0070.01412.49
5.4.130.0040.01612.48
5.4.120.0040.01712.47
5.4.110.0040.01412.47
5.4.100.0050.01312.47
5.4.90.0040.01612.47
5.4.80.0030.01912.47
5.4.70.0060.01212.47
5.4.60.0060.01312.47
5.4.50.0040.01412.47
5.4.40.0050.01312.47
5.4.30.0030.01612.47
5.4.20.0030.01512.47
5.4.10.0070.01312.47
5.4.00.0050.01512.34
5.3.290.0070.01312.68
5.3.280.0060.01212.66
5.3.270.0040.01612.66
5.3.260.0040.01512.66
5.3.250.0050.01812.66
5.3.240.0060.01712.66
5.3.230.0050.01712.66
5.3.220.0050.01912.65
5.3.210.0070.01912.65
5.3.200.0040.01912.65
5.3.190.0050.01612.65
5.3.180.0020.01412.65
5.3.170.0040.01412.65
5.3.160.0070.01212.65
5.3.150.0050.01812.65
5.3.140.0050.01412.64
5.3.130.0040.01612.64
5.3.120.0040.01512.64
5.3.110.0040.01712.64
5.3.100.0040.01512.51
5.3.90.0040.01512.50
5.3.80.0030.01712.50
5.3.70.0030.01612.50
5.3.60.0080.01112.50
5.3.50.0060.01412.48
5.3.40.0040.01312.48
5.3.30.0030.01412.46
5.3.20.0040.01312.41
5.3.10.0050.01312.40
5.3.00.0030.01812.40
5.2.170.0080.01810.39
5.2.160.0040.02110.39
5.2.150.0060.01810.39
5.2.140.0050.01810.39
5.2.130.0070.01510.37
5.2.120.0040.01710.37
5.2.110.0020.01810.37
5.2.100.0070.01910.37
5.2.90.0080.01910.37
5.2.80.0020.02710.37
5.2.70.0050.02310.37
5.2.60.0060.02210.35
5.2.50.0060.02310.33
5.2.40.0050.02310.32
5.2.30.0060.02410.31
5.2.20.0080.02010.30
5.2.10.0050.02110.27
5.2.00.0030.02510.20
5.1.60.0050.0189.84
5.1.50.0070.0159.84
5.1.40.0060.0179.83
5.1.30.0030.01910.00
5.1.20.0020.02210.02
5.1.10.0050.0179.88
5.1.00.0050.0189.88
5.0.50.0050.0129.12
5.0.40.0030.0119.04
5.0.30.0080.0138.95
5.0.20.0040.0118.94
5.0.10.0010.0138.93
5.0.00.0030.0188.92
4.4.90.0020.0098.19
4.4.80.0030.0108.18
4.4.70.0030.0098.18
4.4.60.0030.0108.18
4.4.50.0060.0068.18
4.4.40.0050.0128.15
4.4.30.0030.0098.18
4.4.20.0020.0108.22
4.4.10.0040.0098.23
4.4.00.0030.0158.18
4.3.110.0040.0098.14
4.3.100.0020.0108.13
4.3.90.0050.0088.12
4.3.80.0050.0148.09
4.3.70.0010.0118.12
4.3.60.0050.0088.11
4.3.50.0080.0068.11
4.3.40.0040.0178.07
4.3.30.0050.0117.45
4.3.20.0050.0117.44
4.3.10.0020.0137.41
4.3.00.0020.01113.61

preferences:
47.9 ms | 401 KiB | 5 Q