3v4l.org

run code in 300+ PHP versions simultaneously
<?php $x = array(-3,5,1,3,2,10); function array_rev($array) { for ($i = 0; $i <= count($array)/2; $i++) { $holder = $array[$i]; $array[$i] = $array[count($array) - ($i + 1)]; echo " "; echo $array[$i]; echo " "; $array[count($array) - ($i + 1)] = $holder; echo $array[count($array) - ($i + 1)]; } } array_rev($x);

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.0040.01616.50
8.3.50.0110.00421.91
8.3.40.0120.00618.88
8.3.30.0100.00319.21
8.3.20.0040.00420.16
8.3.10.0030.00718.90
8.3.00.0080.00019.25
8.2.180.0070.00716.50
8.2.170.0100.00722.96
8.2.160.0030.01020.47
8.2.150.0050.00324.18
8.2.140.0040.00424.66
8.2.130.0070.00026.16
8.2.120.0080.00021.04
8.2.110.0070.00322.20
8.2.100.0070.00318.22
8.2.90.0040.00719.14
8.2.80.0090.00017.97
8.2.70.0040.00417.49
8.2.60.0090.00017.93
8.2.50.0060.00318.07
8.2.40.0030.00518.22
8.2.30.0040.00421.13
8.2.20.0040.00417.67
8.2.10.0040.00418.23
8.2.00.0030.00517.62
8.1.280.0100.01025.92
8.1.270.0040.00423.82
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0070.00323.96
8.1.230.0070.00419.09
8.1.220.0040.00417.80
8.1.210.0040.00418.77
8.1.200.0060.00317.35
8.1.190.0030.00517.23
8.1.180.0040.00418.10
8.1.170.0000.00918.59
8.1.160.0040.00421.95
8.1.150.0000.00718.88
8.1.140.0050.00217.45
8.1.130.0030.00317.89
8.1.120.0000.00717.36
8.1.110.0000.00817.39
8.1.100.0000.00717.48
8.1.90.0040.00417.43
8.1.80.0030.00517.38
8.1.70.0030.00317.41
8.1.60.0000.00917.62
8.1.50.0060.00317.43
8.1.40.0030.00617.50
8.1.30.0080.00017.53
8.1.20.0040.00417.66
8.1.10.0040.00417.48
8.1.00.0040.00417.56
8.0.300.0070.00018.77
8.0.290.0040.00416.63
8.0.280.0070.00018.46
8.0.270.0030.00317.20
8.0.260.0000.00617.17
8.0.250.0030.00316.84
8.0.240.0070.00016.91
8.0.230.0030.00316.97
8.0.220.0000.00816.85
8.0.210.0040.00416.78
8.0.200.0000.00616.90
8.0.190.0070.00016.88
8.0.180.0000.00716.75
8.0.170.0030.00516.80
8.0.160.0000.00716.88
8.0.150.0070.00016.75
8.0.140.0080.00016.84
8.0.130.0030.00313.37
8.0.120.0040.00416.80
8.0.110.0000.00716.88
8.0.100.0020.00516.93
8.0.90.0050.00216.93
8.0.80.0100.00716.89
8.0.70.0040.00416.91
8.0.60.0000.00716.71
8.0.50.0000.00716.72
8.0.30.0130.00617.12
8.0.20.0120.00717.40
8.0.10.0050.00216.92
8.0.00.0080.01316.81
7.4.330.0050.00015.00
7.4.320.0000.00616.59
7.4.300.0060.00016.51
7.4.290.0070.00016.53
7.4.280.0040.00416.57
7.4.270.0040.00416.65
7.4.260.0000.00716.39
7.4.250.0000.00816.49
7.4.240.0050.00216.58
7.4.230.0000.00716.43
7.4.220.0070.01616.63
7.4.210.0060.00816.47
7.4.200.0070.00016.63
7.4.160.0100.00616.48
7.4.150.0150.00917.40
7.4.140.0110.00717.86
7.4.130.0050.01316.58
7.4.120.0120.00616.48
7.4.110.0190.00316.40
7.4.100.0160.00316.53
7.4.90.0120.00616.40
7.4.80.0110.00619.39
7.4.70.0100.00716.53
7.4.60.0060.01016.48
7.4.50.0000.00916.35
7.4.40.0100.01316.41
7.4.30.0030.01416.54
7.4.00.0100.00715.20
7.3.330.0000.00513.28
7.3.320.0030.00313.14
7.3.310.0070.00016.17
7.3.300.0000.00616.31
7.3.290.0100.01016.33
7.3.280.0070.00916.32
7.3.270.0090.00917.40
7.3.260.0120.00916.43
7.3.250.0120.00816.46
7.3.240.0110.01116.51
7.3.230.0140.00416.39
7.3.210.0070.01116.37
7.3.200.0090.00919.39
7.3.190.0040.01216.56
7.3.180.0160.00016.67
7.3.170.0060.01516.59
7.3.160.0130.00316.39
7.2.330.0060.01216.75
7.2.320.0030.01416.36
7.2.310.0130.00316.46
7.2.300.0030.01216.46
7.2.290.0110.00616.59
7.2.110.0090.00916.48
7.2.100.0070.00716.66
7.2.90.0030.01016.69
7.2.80.0070.00716.34
7.2.70.0000.01516.97
7.2.60.0050.00816.77
7.2.50.0050.01016.75
7.2.40.0050.00516.41
7.2.30.0060.01216.76
7.2.20.0100.00316.40
7.2.10.0110.00316.64
7.2.00.0080.00616.93
7.1.230.0090.00615.91
7.1.220.0110.00015.70
7.1.210.0120.00315.29
7.1.200.0050.01115.54
7.1.190.0060.00615.79
7.1.180.0030.01315.93
7.1.170.0000.01315.61
7.1.160.0070.00715.77
7.1.150.0120.00015.64
7.1.140.0120.00615.76
7.1.130.0070.00715.57
7.1.120.0070.01015.59
7.1.110.0090.00615.40
7.1.100.0100.00315.61
7.1.90.0100.00615.45
7.1.80.0080.00615.43
7.1.70.0100.00316.27
7.1.60.0050.01517.78
7.1.50.0060.00916.45
7.1.40.0070.01315.55
7.1.30.1410.00615.93
7.1.20.0000.01415.87
7.1.10.0110.00315.91
7.1.00.0080.04119.09
7.0.310.0030.00515.32
7.0.300.0060.00615.28
7.0.290.0060.00615.12
7.0.280.0060.00915.24
7.0.270.0090.00315.24
7.0.260.0060.00915.05
7.0.250.0060.00915.35
7.0.240.0090.00615.33
7.0.230.0060.00715.39
7.0.220.0100.00315.25
7.0.210.0100.00715.38
7.0.200.0080.00316.00
7.0.190.0070.00015.19
7.0.180.0060.00615.49
7.0.170.0000.01415.29
7.0.160.0030.01215.52
7.0.150.0090.00315.45
7.0.140.0050.04018.75
7.0.130.0090.00615.36
7.0.120.0070.00715.41
7.0.110.0060.00915.50
7.0.100.0110.00615.35
7.0.90.0100.01015.10
7.0.80.0080.01015.24
7.0.70.0070.00715.21
7.0.60.0040.04717.67
7.0.50.0070.04216.59
7.0.40.0000.02916.65
7.0.30.0150.04516.78
7.0.20.0120.04216.79
7.0.10.0140.04616.65
7.0.00.0080.02516.63
5.6.380.0060.00914.26
5.6.370.0100.00314.76
5.6.360.0070.00714.18
5.6.350.0080.00614.45
5.6.340.0060.01214.04
5.6.330.0100.00314.23
5.6.320.0150.00014.29
5.6.310.0110.00314.04
5.6.300.0120.00314.44
5.6.290.0040.00814.30
5.6.280.0080.03817.64
5.6.270.0070.00714.48
5.6.260.0070.01014.62
5.6.250.0090.00614.30
5.6.240.0090.01214.01
5.6.230.0100.01214.05
5.6.220.0070.00714.30
5.6.210.0030.04917.54
5.6.200.0090.02816.34
5.6.190.0090.04417.50
5.6.180.0150.02817.34
5.6.170.0150.02017.62
5.6.160.0090.02217.40
5.6.150.0050.02816.10
5.6.140.0060.04316.20
5.6.130.0060.04916.11
5.6.120.0090.04017.49
5.6.110.0030.03417.51
5.6.100.0090.04217.43
5.6.90.0050.02417.63
5.6.80.0040.03417.13
5.6.70.0090.02517.16
5.6.60.0080.00414.18
5.6.50.0070.00414.05
5.6.40.0040.01114.10
5.6.30.0090.00614.01
5.6.20.0050.00514.01
5.6.10.0100.00313.88
5.6.00.0090.00313.88
5.5.380.0070.00311.30
5.5.370.0050.00511.18
5.5.360.0030.01011.21
5.5.350.0070.03515.84
5.5.340.0060.02614.77
5.5.330.0030.02515.71
5.5.320.0180.03515.67
5.5.310.0130.02215.66
5.5.300.0100.03814.55
5.5.290.0090.01814.58
5.5.280.0050.02416.10
5.5.270.0080.04515.96
5.5.260.0050.03815.99
5.5.250.0110.04215.74
5.5.240.0050.03815.66
5.5.230.0040.00410.96
5.5.220.0050.00011.02
5.5.210.0080.00010.53
5.5.200.0000.01010.96
5.5.190.0040.00811.06
5.5.180.0000.01010.93
5.5.170.0060.00614.12
5.5.160.0000.00611.06
5.5.150.0000.00811.05
5.5.140.0040.00410.77
5.5.130.0000.00711.09
5.5.120.0030.00711.22
5.5.110.0030.00711.21
5.5.100.0100.00011.03
5.5.90.0030.00610.55
5.5.80.0000.01311.19
5.5.70.0080.00011.12
5.5.60.0030.00911.05
5.5.50.0040.00711.01
5.5.40.0000.01011.40
5.5.30.0040.00711.30
5.5.20.0030.00911.15
5.5.10.0000.01011.17
5.5.00.0000.01211.07
5.4.450.0280.02815.14
5.4.440.0330.01914.97
5.4.430.0170.02515.17
5.4.420.0130.02815.00
5.4.410.0100.02915.17
5.4.400.0080.02914.87
5.4.390.0070.03515.01
5.4.380.0220.02714.87
5.4.370.0080.03814.83
5.4.360.0080.03214.81
5.4.350.0070.03214.70
5.4.340.0150.02814.89
5.4.330.0060.00011.00
5.4.320.0080.01811.82
5.4.310.0060.02111.64
5.4.300.0050.02111.52
5.4.290.0050.02211.70
5.4.280.0040.02211.48
5.4.270.0050.02311.67
5.4.260.0030.02311.65
5.4.250.0040.02711.69
5.4.240.0040.02111.79
5.4.230.0050.02911.56
5.4.220.0090.02411.76
5.4.210.0050.02311.73
5.4.200.0060.02311.84
5.4.190.0050.02211.72
5.4.180.0070.02011.71
5.4.170.0060.01811.62
5.4.160.0070.01811.81
5.4.150.0100.01911.60
5.4.140.0060.02211.76
5.4.130.0080.01911.62
5.4.120.0020.02411.52
5.4.110.0050.02111.49
5.4.100.0020.02211.50
5.4.90.0090.02411.61
5.4.80.0060.02211.59
5.4.70.0050.02611.55
5.4.60.0040.02211.53
5.4.50.0080.02311.52
5.4.40.0070.02511.61
5.4.30.0070.01911.57
5.4.20.0090.02511.39
5.4.10.0080.02511.54
5.4.00.0040.02811.33
5.3.290.0070.02611.62
5.3.280.0040.02211.63
5.3.270.0090.02511.70
5.3.260.0040.02311.60
5.3.250.0060.02011.68
5.3.240.0070.02211.60
5.3.230.0040.02611.69
5.3.220.0060.02411.68
5.3.210.0090.01911.62
5.3.200.0090.02611.59
5.3.190.0050.02711.64
5.3.180.0020.02311.62
5.3.170.0070.01711.71
5.3.160.0040.02411.72
5.3.150.0060.02211.73
5.3.140.0070.02011.73
5.3.130.0040.02311.66
5.3.120.0030.02311.68
5.3.110.0020.02311.52
5.3.100.0030.02811.26
5.3.90.0080.02111.29
5.3.80.0040.02611.34
5.3.70.0080.01811.31
5.3.60.0040.03111.27
5.3.50.0070.02111.19
5.3.40.0080.02011.30
5.3.30.0080.02611.29
5.3.20.0050.02711.03
5.3.10.0040.02210.99
5.3.00.0050.02111.06
5.2.170.0060.0239.40
5.2.160.0040.0179.34
5.2.150.0060.0189.35
5.2.140.0010.0249.37
5.2.130.0060.0219.35
5.2.120.0060.0169.39
5.2.110.0040.0209.22
5.2.100.0070.0219.29
5.2.90.0030.0199.31
5.2.80.0050.0189.15
5.2.70.0050.0169.30
5.2.60.0040.0209.10
5.2.50.0020.0239.11
5.2.40.0070.0149.13
5.2.30.0080.0169.27
5.2.20.0030.0209.22
5.2.10.0040.0188.97
5.2.00.0050.0198.92
5.1.60.0080.0148.41
5.1.50.0050.0148.41
5.1.40.0040.0168.41
5.1.30.0050.0238.57
5.1.20.0040.0228.64
5.1.10.0050.0148.45
5.1.00.0040.0198.45
5.0.50.0050.0107.69
5.0.40.0050.0157.62
5.0.30.0020.0177.52
5.0.20.0030.0127.50
5.0.10.0040.0137.49
5.0.00.0040.0217.49
4.4.90.0020.0106.76
4.4.80.0020.0116.74
4.4.70.0040.0106.74
4.4.60.0020.0136.74
4.4.50.0030.0146.75
4.4.40.0040.0136.72
4.4.30.0050.0146.74
4.4.20.0020.0146.79
4.4.10.0040.0096.79
4.4.00.0020.0166.74
4.3.110.0030.0106.70
4.3.100.0030.0106.70
4.3.90.0030.0076.68
4.3.80.0020.0156.66
4.3.70.0020.0126.68
4.3.60.0030.0096.68
4.3.50.0020.0146.68
4.3.40.0030.0186.63
4.3.30.0030.0076.02
4.3.20.0020.0106.01
4.3.10.0010.0115.99
4.3.00.0020.01011.66

preferences:
43.52 ms | 401 KiB | 5 Q