3v4l.org

run code in 300+ PHP versions simultaneously
<?php $x=array( 1 => 'ghj', 2 => 234, 3 => 234.34, 4 => '123', 5 => 'as12345' ); $x2=$x; $x3=$x; array_walk($x2,'intval'); $x = array_map('intval',$x); $x3 = array_map(int,$x3); var_dump($x2,$x,$x3) ?>

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.0070.00716.75
8.3.50.0130.00721.19
8.3.40.0060.00918.71
8.3.30.0040.01218.53
8.3.20.0000.00820.33
8.3.10.0000.00723.71
8.3.00.0050.00322.50
8.2.180.0160.00316.50
8.2.170.0070.01422.96
8.2.160.0100.00322.31
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0000.00826.16
8.2.120.0030.00617.63
8.2.110.0000.00920.52
8.2.100.0080.00417.91
8.2.90.0050.00319.21
8.2.80.0080.00017.97
8.2.70.0080.00017.59
8.2.60.0030.00917.91
8.2.50.0090.00018.07
8.2.40.0070.00320.89
8.2.30.0000.00819.95
8.2.20.0050.00317.71
8.2.10.0030.00517.99
8.2.00.0000.00718.09
8.1.280.0150.00025.92
8.1.270.0050.00320.33
8.1.260.0040.00426.35
8.1.250.0030.00528.09
8.1.240.0070.00323.86
8.1.230.0080.00420.84
8.1.220.0000.00817.79
8.1.210.0040.00418.77
8.1.200.0000.00817.35
8.1.190.0080.00017.35
8.1.180.0040.00418.10
8.1.170.0040.00418.50
8.1.160.0030.00321.93
8.1.150.0040.00418.79
8.1.140.0040.00417.39
8.1.130.0000.00717.44
8.1.120.0070.00017.36
8.1.110.0080.00017.50
8.1.100.0000.00717.50
8.1.90.0040.00417.41
8.1.80.0030.00317.34
8.1.70.0030.00317.45
8.1.60.0000.01017.55
8.1.50.0000.00817.55
8.1.40.0040.00417.51
8.1.30.0000.00817.58
8.1.20.0070.00017.66
8.1.10.0040.00717.53
8.1.00.0130.00017.48
8.0.300.0000.00718.77
8.0.290.0040.00416.75
8.0.280.0030.00318.34
8.0.270.0040.00417.16
8.0.260.0040.00416.84
8.0.250.0070.00017.01
8.0.240.0030.00316.94
8.0.230.0030.00616.91
8.0.220.0000.00716.97
8.0.210.0040.00416.85
8.0.200.0050.00217.03
8.0.190.0000.00816.90
8.0.180.0070.00016.96
8.0.170.0000.00716.94
8.0.160.0050.00216.98
8.0.150.0070.00016.84
8.0.140.0000.00716.82
8.0.130.0000.00613.37
8.0.120.0050.00316.88
8.0.110.0070.00016.84
8.0.100.0040.00416.97
8.0.90.0000.00716.81
8.0.80.0090.00616.93
8.0.70.0070.00016.74
8.0.60.0070.00016.80
8.0.50.0080.00016.93
8.0.30.0130.00517.06
8.0.20.0110.01017.40
8.0.10.0000.00717.13
8.0.00.0070.01016.83
7.4.330.0030.00315.08
7.4.320.0000.00616.40
7.4.300.0000.00616.48
7.4.290.0030.00316.50
7.4.280.0000.00816.39
7.4.270.0000.00716.40
7.4.260.0000.00716.50
7.4.250.0000.00716.47
7.4.240.0020.00516.49
7.4.230.0000.00716.39
7.4.220.0100.01316.49
7.4.210.0060.00916.64
7.4.200.0000.00716.46
7.4.160.0080.00816.34
7.4.150.0160.01017.40
7.4.140.0070.01817.86
7.4.130.0090.00916.48
7.4.120.0070.01216.47
7.4.110.0130.00616.55
7.4.100.0150.00816.55
7.4.90.0120.00616.47
7.4.80.0090.00919.39
7.4.70.0090.00916.43
7.4.60.0090.01216.44
7.4.50.0040.00016.29
7.4.40.0100.00716.55
7.4.30.0110.01116.57
7.4.00.0150.00014.92
7.3.330.0030.00313.10
7.3.320.0030.00313.01
7.3.310.0000.00816.35
7.3.300.0070.00016.25
7.3.290.0080.00716.26
7.3.280.0130.00816.29
7.3.270.0100.00717.40
7.3.260.0130.00716.22
7.3.250.0080.00916.32
7.3.240.0100.00716.41
7.3.230.0180.00616.48
7.3.210.0130.00316.25
7.3.200.0090.01316.48
7.3.190.0170.00016.44
7.3.180.0090.00616.33
7.3.170.0070.01016.41
7.3.160.0120.00616.57
7.2.330.0130.01016.61
7.2.320.0100.01016.63
7.2.310.0080.01116.25
7.2.300.0150.00316.52
7.2.290.0110.00716.43
7.2.60.0000.01616.68
7.2.00.0060.00619.13
7.1.200.0060.00315.65
7.1.100.0160.01017.81
7.1.70.0030.00517.04
7.1.60.0070.01819.18
7.1.50.0190.00616.87
7.1.00.0030.07722.32
7.0.200.0200.00616.39
7.0.60.0030.06019.86
7.0.50.0030.05017.78
7.0.40.0070.07720.39
7.0.30.0300.07720.09
7.0.20.0470.06720.04
7.0.10.0130.08320.33
7.0.00.0030.04720.00
5.6.280.0030.06721.12
5.6.210.0000.09020.50
5.6.200.0100.06018.22
5.6.190.0030.08720.45
5.6.180.0370.05320.57
5.6.170.0270.08320.44
5.6.160.0130.08020.54
5.6.150.0000.04318.22
5.6.140.0030.07018.15
5.6.130.0100.06718.17
5.6.120.0100.08021.03
5.6.110.0030.04321.02
5.6.100.0200.06020.99
5.6.90.0070.05320.98
5.6.80.0200.06020.36
5.5.350.0130.07020.38
5.5.340.0100.03318.02
5.5.330.0070.05320.27
5.5.320.3700.04720.29
5.5.310.0270.04720.41
5.5.300.0070.04017.89
5.5.290.0130.05718.00
5.5.280.0170.07720.80
5.5.270.0030.04320.96
5.5.260.0100.07720.79
5.5.250.0100.07320.69
5.5.240.0070.02720.11
5.4.450.0200.06719.41
5.4.440.0330.07019.24
5.4.430.0270.07019.11
5.4.420.0170.06019.45
5.4.410.0300.07019.13
5.4.400.0170.07719.09
5.4.390.0200.06319.06
5.4.380.0200.06719.09
5.4.370.0100.08018.80
5.4.360.0170.07318.89
5.4.350.0200.04319.14
5.4.340.0300.06719.10
5.4.320.0230.07319.18
5.4.310.0300.07019.12
5.4.300.0300.06719.21
5.4.290.0230.07719.15
5.4.280.0300.06719.24
5.4.270.0300.05018.88
5.4.260.0200.06019.07
5.4.250.0230.07718.93
5.4.240.0100.06319.04
5.4.230.0370.05719.08
5.4.220.0230.04019.09
5.4.210.0330.07318.92
5.4.200.0300.07019.07
5.4.190.0270.05019.05
5.4.180.0230.05718.91
5.4.170.0170.04718.80
5.4.160.0270.05319.23
5.4.150.0300.04718.91
5.4.140.0170.05316.31
5.4.130.0230.03716.54
5.4.120.0300.06716.35
5.4.110.0330.04016.49
5.4.100.0270.06716.44
5.4.90.0270.06016.48
5.4.80.0200.06016.18
5.4.70.0230.07316.44
5.4.60.0230.05016.45
5.4.50.0270.05716.40
5.4.40.0200.06016.38
5.4.30.0270.04316.36
5.4.20.0200.03716.36
5.4.10.0300.06316.45
5.4.00.0300.05715.82
5.3.290.0200.05314.54
5.3.280.0230.07314.45
5.3.270.0270.07314.65
5.3.260.0170.08014.65
5.3.250.0200.06714.63
5.3.240.0100.04314.51
5.3.230.0200.07014.45
5.3.220.0200.05714.52
5.3.210.0170.05014.52
5.3.200.0230.05314.42
5.3.190.0270.04714.51
5.3.180.0130.06014.46
5.3.170.0230.03714.40
5.3.160.0170.05314.65
5.3.150.0230.05014.51
5.3.140.0200.06714.39
5.3.130.0230.05014.49
5.3.120.0200.04714.39
5.3.110.0270.06314.39
5.3.100.0230.07014.06
5.3.90.0230.06713.96
5.3.80.0170.04314.11
5.3.70.0330.06013.96
5.3.60.0200.06713.96
5.3.50.0200.04313.96
5.3.40.0200.03713.96
5.3.30.0230.05313.96
5.3.20.0270.05013.96
5.3.10.0100.04313.96
5.3.00.0170.07713.96
5.2.170.0300.03713.96
5.2.160.0170.03713.96
5.2.150.0200.02713.96
5.2.140.0230.03313.96
5.2.130.0170.04013.96
5.2.120.0170.05313.96
5.2.110.0100.03713.96
5.2.100.0170.06013.96
5.2.90.0230.05313.96
5.2.80.0200.05713.96
5.2.70.0200.05313.96
5.2.60.0200.05713.96
5.2.50.0170.06313.96
5.2.40.0100.05313.96
5.2.30.0170.04313.96
5.2.20.0170.05313.96
5.2.10.0130.05013.96
5.2.00.0130.05313.96
5.1.60.0170.05013.96
5.1.50.0130.03313.96
5.1.40.0170.02713.96
5.1.30.0100.03313.96
5.1.20.0200.05013.96
5.1.10.0170.03713.96
5.1.00.0170.04313.96
5.0.50.0070.04313.96
5.0.40.0030.03013.96
5.0.30.0100.04713.96
5.0.20.0130.04013.96
5.0.10.0130.02713.96
5.0.00.0070.06713.96
4.4.90.0100.02013.96
4.4.80.0100.03313.96
4.4.70.0070.03713.96
4.4.60.0070.03713.96
4.4.50.0130.03013.96
4.4.40.0070.03313.96
4.4.30.0130.01013.96
4.4.20.0070.03013.96
4.4.10.0030.02713.96
4.4.00.0030.04313.96
4.3.110.0070.02013.96
4.3.100.0070.02013.96
4.3.90.0100.01713.96
4.3.80.0030.05713.96
4.3.70.0070.03013.96
4.3.60.0070.03713.96
4.3.50.0130.01713.96
4.3.40.0070.05313.96
4.3.30.0030.03713.96
4.3.20.0030.03313.96
4.3.10.0030.03313.96
4.3.00.0100.02313.96

preferences:
42.16 ms | 401 KiB | 5 Q