3v4l.org

run code in 300+ PHP versions simultaneously
<?php // Example 4 $array = ['value']; $value =& $array[0]; $anotherArray = $array; $anotherArray[0] = 'surprise!'; echo $value . "\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.0090.00918.30
8.3.60.0100.00716.50
8.3.50.0100.00717.27
8.3.40.0030.01518.76
8.3.30.0100.00318.67
8.3.20.0050.00321.82
8.3.10.0030.00623.66
8.3.00.0040.00418.22
8.2.180.0070.01018.28
8.2.170.0100.00722.96
8.2.160.0140.00621.25
8.2.150.0050.00324.18
8.2.140.0080.00024.66
8.2.130.0050.00320.35
8.2.120.0040.00426.35
8.2.110.0090.00022.27
8.2.100.0060.00617.90
8.2.90.0000.00820.07
8.2.80.0060.00318.05
8.2.70.0050.00317.93
8.2.60.0050.00218.16
8.2.50.0000.00818.10
8.2.40.0060.00320.60
8.2.30.0050.00219.36
8.2.20.0060.00318.04
8.2.10.0030.00518.10
8.2.00.0070.00018.18
8.1.280.0110.00725.92
8.1.270.0040.00423.79
8.1.260.0000.00826.35
8.1.250.0040.00428.09
8.1.240.0030.00722.14
8.1.230.0000.01120.88
8.1.220.0040.00417.74
8.1.210.0050.00318.77
8.1.200.0030.00617.38
8.1.190.0040.00417.51
8.1.180.0040.00418.10
8.1.170.0000.00918.47
8.1.160.0050.00318.83
8.1.150.0040.00422.00
8.1.140.0040.00419.42
8.1.130.0000.00718.73
8.1.120.0040.00417.41
8.1.110.0040.00417.32
8.1.100.0000.00717.40
8.1.90.0040.00417.36
8.1.80.0000.00717.32
8.1.70.0000.00717.29
8.1.60.0040.00417.42
8.1.50.0030.00517.49
8.1.40.0040.00417.37
8.1.30.0000.00817.55
8.1.20.0000.00817.46
8.1.10.0080.00017.51
8.1.00.0050.00217.39
8.0.300.0040.00419.64
8.0.290.0030.00516.63
8.0.280.0030.00418.44
8.0.270.0040.00417.26
8.0.260.0070.00016.82
8.0.250.0000.00616.87
8.0.240.0070.00316.98
8.0.230.0070.00016.93
8.0.220.0030.00316.86
8.0.210.0000.00816.77
8.0.200.0030.00316.96
8.0.190.0040.00416.86
8.0.180.0050.00216.87
8.0.170.0000.00717.00
8.0.160.0040.00416.85
8.0.150.0040.00416.87
8.0.140.0030.00316.73
8.0.130.0030.00313.30
8.0.120.0040.00416.88
8.0.110.0030.00316.93
8.0.100.0080.00016.79
8.0.90.0040.00416.89
8.0.80.0090.01216.86
8.0.70.0030.00316.68
8.0.60.0070.00016.79
8.0.50.0000.00716.89
8.0.30.0070.01117.11
8.0.20.0110.00717.40
8.0.10.0030.00316.97
8.0.00.0120.00616.67
7.4.330.0030.00315.55
7.4.320.0000.00616.55
7.4.300.0060.00016.56
7.4.290.0000.00716.34
7.4.280.0030.00516.55
7.4.270.0000.00716.51
7.4.260.0000.00716.57
7.4.250.0040.00416.41
7.4.240.0040.00416.57
7.4.230.0070.00016.44
7.4.220.0100.00716.52
7.4.210.0030.01616.63
7.4.200.0000.00716.48
7.4.160.0060.01016.45
7.4.150.0130.00717.40
7.4.140.0170.00917.86
7.4.130.0180.00616.66
7.4.120.0050.01416.58
7.4.110.0040.01216.45
7.4.100.0130.00916.51
7.4.90.0080.00816.42
7.4.80.0100.00619.39
7.4.70.0100.00616.48
7.4.60.0100.00616.26
7.4.50.0110.00416.43
7.4.40.0040.01216.54
7.4.30.0110.00616.51
7.4.00.0060.00814.83
7.3.330.0030.00313.24
7.3.320.0050.00013.16
7.3.310.0070.00016.20
7.3.300.0000.00716.29
7.3.290.0090.00616.27
7.3.280.0090.00716.24
7.3.270.0070.01017.40
7.3.260.0100.01116.46
7.3.250.0090.01016.39
7.3.240.0070.01016.34
7.3.230.0070.01416.42
7.3.210.0060.01016.48
7.3.200.0110.00716.28
7.3.190.0120.00616.46
7.3.180.0130.00316.49
7.3.170.0100.01016.36
7.3.160.0050.01116.46
7.3.120.0120.00614.73
7.3.110.0090.00215.00
7.3.100.0070.01014.69
7.3.90.0090.00914.78
7.3.80.0070.00714.75
7.3.70.0040.00814.66
7.3.60.0050.00514.92
7.3.50.0030.00614.90
7.3.40.0080.00714.83
7.3.30.0130.00014.87
7.3.20.0070.00416.50
7.3.10.0070.00716.71
7.3.00.0000.01416.79
7.2.330.0080.00816.57
7.2.320.0040.01216.56
7.2.310.0110.01216.27
7.2.300.0100.00716.68
7.2.290.0070.01016.36
7.2.240.0070.01114.91
7.2.230.0070.01115.07
7.2.220.0000.01414.79
7.2.210.0000.01114.82
7.2.200.0030.01014.66
7.2.190.0000.01615.11
7.2.180.0080.00014.91
7.2.170.0040.01014.95
7.2.160.0090.00614.77
7.2.150.0070.00716.88
7.2.140.0070.00716.76
7.2.130.0030.01316.98
7.2.120.0040.00716.82
7.2.110.0070.00716.86
7.2.100.0040.01116.82
7.2.90.0060.01016.87
7.2.80.0040.00816.73
7.2.70.0030.01116.66
7.2.60.0560.01115.80
7.2.50.0030.01116.92
7.2.40.0060.00916.88
7.2.30.0000.01216.80
7.2.20.0030.00916.77
7.2.10.0090.00616.85
7.2.00.0060.00618.21
7.1.330.0060.01015.64
7.1.320.0040.00716.01
7.1.310.0060.00315.55
7.1.300.0090.00315.76
7.1.290.0050.00516.01
7.1.280.0050.00515.66
7.1.270.0000.01315.44
7.1.260.0030.00515.75
7.1.250.0090.00615.59
7.1.100.0060.00918.11
7.1.70.0050.00217.02
7.1.60.0040.00716.89
7.1.50.0030.01016.80
7.1.40.0030.00716.52
7.1.30.0030.01616.44
7.1.20.0000.01216.61
7.1.10.0040.00716.44
7.1.00.0040.00416.47
7.0.200.0000.00716.52
7.0.190.0030.00316.79
7.0.180.0030.00516.44
7.0.170.0000.01016.45
7.0.160.0040.00416.44
7.0.150.0000.01116.44
7.0.140.0040.00416.48
7.0.130.0000.01016.44
7.0.120.0000.00916.55
7.0.110.0020.00516.44
7.0.100.0050.00216.49
7.0.90.0000.00816.48
7.0.80.0070.00316.47
7.0.70.0000.00816.44
7.0.60.0040.00416.44
7.0.50.0040.00416.47
7.0.40.0030.00616.44
7.0.30.0000.00716.44
7.0.20.0070.00016.44
7.0.10.0050.00516.44
7.0.00.0050.00316.44
5.6.300.0030.05020.93
5.6.290.0070.04420.57
5.6.280.0060.05820.77
5.6.270.0030.04220.99
5.6.260.0000.04320.89
5.6.250.0060.03920.96
5.6.240.0070.04320.82
5.6.230.0030.04720.87
5.6.220.0000.04720.80
5.6.210.0030.04120.63
5.6.200.0030.04320.92
5.6.190.0060.04220.78
5.6.180.0030.03920.73
5.6.170.0000.04420.97
5.6.160.0030.04720.76
5.6.150.0100.04220.72
5.6.140.0030.04020.85
5.6.130.0030.04420.85
5.6.120.0070.03621.01
5.6.110.0060.04120.94
5.6.100.0070.04320.80
5.6.90.0070.05021.02
5.6.80.0000.05020.21
5.6.70.0030.04220.37
5.6.60.0030.04520.14
5.6.50.0000.04820.21
5.6.40.0070.04020.17
5.6.30.0030.04620.35
5.6.20.0060.03620.37
5.6.10.0060.03620.37
5.6.00.0030.04420.15
5.5.380.0030.04117.48
5.5.370.0060.03917.41
5.5.360.0030.04117.45
5.5.350.0000.04417.53
5.5.340.0030.03918.03
5.5.330.0030.04818.04
5.5.320.0090.03818.03
5.5.310.0000.04217.99
5.5.300.0000.04717.82
5.5.290.0040.04617.98
5.5.280.0030.04418.05
5.5.270.0000.04617.93
5.5.260.0070.04617.96
5.5.250.0030.04717.93
5.5.240.0000.04417.39
5.5.230.0130.03317.08
5.5.220.0030.03617.34
5.5.210.0070.04017.49
5.5.200.0200.05017.38
5.5.190.0000.04417.23
5.5.180.0330.04017.40
5.5.160.0060.03917.35
5.5.150.0000.05017.18
5.5.140.0000.04317.39
5.5.130.0030.04117.18
5.5.120.0000.04717.38
5.5.110.0030.04017.40
5.5.100.0030.04017.29
5.5.90.0030.03917.09
5.5.80.0000.04516.99
5.5.70.0040.03917.20
5.5.60.0070.03617.19
5.5.50.0100.05517.27
5.5.40.0030.03817.37
5.5.30.0060.03517.09
5.5.20.0070.03817.07
5.5.10.0040.04317.10
5.5.00.0000.05217.30
5.4.450.0070.03919.43
5.4.440.0030.04119.46
5.4.430.0030.05819.36
5.4.420.0030.04319.23
5.4.410.0100.05619.25
5.4.400.0040.03519.08
5.4.390.0000.04019.16
5.4.380.0070.04019.06
5.4.370.0000.04519.08
5.4.360.0000.04819.05
5.4.350.0030.03919.07
5.4.340.0000.04218.82
5.4.320.0070.03718.89
5.4.310.0070.03318.82
5.4.300.0000.04319.13
5.4.290.0030.04219.00
5.4.280.0060.03619.05
5.4.270.0030.03719.07
5.4.260.0000.04319.02
5.4.250.0000.03819.05
5.4.240.0040.03518.97
5.4.230.0030.04218.91
5.4.220.0030.03918.94
5.4.210.0130.03119.08
5.4.200.0000.04319.08
5.4.190.0000.04719.05
5.4.180.0000.04519.04
5.4.170.0060.03519.04
5.4.160.0140.04718.88
5.4.150.0030.04219.06
5.4.140.0000.04316.46
5.4.130.0000.04016.44
5.4.120.0170.03316.49
5.4.110.0000.04416.65
5.4.100.0000.04116.65
5.4.90.0030.03316.61
5.4.80.0030.03516.55
5.4.70.0030.04516.44
5.4.60.0070.03316.59
5.4.50.0070.03216.59
5.4.40.0070.03016.64
5.4.30.0040.03516.58
5.4.20.0030.03616.53
5.4.10.0000.03916.44
5.4.00.0030.03416.44
5.3.290.0200.03716.44
5.3.280.0070.03416.44
5.3.270.0030.03916.44
5.3.260.0030.03816.44
5.3.250.0060.03816.44
5.3.240.0030.03716.44
5.3.230.0060.03216.44
5.3.220.0030.03816.44
5.3.210.0030.05416.44
5.3.200.0040.03516.44
5.3.190.0030.04416.44
5.3.180.0070.03716.44
5.3.170.0000.04016.44
5.3.160.0030.04216.44
5.3.150.0000.04116.44
5.3.140.0000.04416.44
5.3.130.0030.04716.44
5.3.120.0060.03616.44
5.3.110.0290.03216.44
5.3.100.0000.04216.44
5.3.90.0030.03916.44
5.3.80.0030.03716.44
5.3.70.0040.03216.44
5.3.60.0000.03716.44
5.3.50.0030.04116.44
5.3.40.0000.04416.44
5.3.30.0030.03416.44
5.3.20.0040.03916.44
5.3.10.0030.03516.44
5.3.00.0000.04016.44
5.2.170.0000.03416.44
5.2.160.0000.03416.44
5.2.150.0000.03216.44
5.2.140.0000.03316.44
5.2.130.0030.03016.44
5.2.120.0030.02916.44
5.2.110.0030.02916.44
5.2.100.0030.02716.44
5.2.90.0210.02116.44
5.2.80.0000.06516.44
5.2.70.0000.03616.44
5.2.60.0060.02616.44
5.2.50.0030.03716.44
5.2.40.0030.02816.44
5.2.30.0000.03616.44
5.2.20.0070.02416.44
5.2.10.0100.02616.44
5.2.00.0060.03216.44
5.1.60.0040.02216.44
5.1.50.0000.02816.44
5.1.40.0000.04016.44
5.1.30.0000.03416.44
5.1.20.0000.02716.44
5.1.10.0070.02016.44
5.1.00.0030.02316.44
5.0.50.0030.02016.44
5.0.40.0030.01916.44
5.0.30.0000.03116.44
5.0.20.0060.01416.44
5.0.10.0060.01516.44
5.0.00.0030.03316.44
4.4.90.0000.01816.44
4.4.80.0000.01616.44
4.4.70.0000.02016.44
4.4.60.0030.01316.44
4.4.50.0030.01516.44
4.4.40.0100.02816.44
4.4.30.0000.01616.44
4.4.20.0030.03016.44
4.4.10.0000.01616.44
4.4.00.0030.02716.44
4.3.110.0030.01316.44
4.3.100.0030.01216.44
4.3.90.0000.01716.44
4.3.80.0030.04516.44
4.3.70.0030.02216.44
4.3.60.0000.02216.44
4.3.50.0030.01416.44
4.3.40.0000.02516.44
4.3.30.0000.01716.44
4.3.20.0030.01716.44
4.3.10.0000.03516.44
4.3.00.0030.01516.44

preferences:
64.36 ms | 401 KiB | 5 Q