3v4l.org

run code in 300+ PHP versions simultaneously
<?php $hire = array( 'hiring' => array( (int) 1 => '10', (int) 2 => '5', (int) 3 => '8', (int) 4 => '15' ) ); $integerIDs = array_map('intval', explode(',', $hire['hiring'])); $hire['hiring'] = implode(',',$hire['hiring']); print_r($hire['hiring']); echo $integerIDs; echo "\n"; echo $hire['hiring'];

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.01416.75
8.3.50.0100.00716.60
8.3.40.0070.00718.88
8.3.30.0060.00918.89
8.3.20.0000.00818.73
8.3.10.0040.00420.57
8.3.00.0000.00819.36
8.2.180.0070.01016.88
8.2.170.0000.01422.96
8.2.160.0070.00721.08
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0000.00719.77
8.2.110.0070.00421.12
8.2.100.0040.00817.78
8.2.90.0000.00819.09
8.2.80.0000.00817.89
8.2.70.0000.00917.75
8.2.60.0050.00517.90
8.2.50.0030.00918.07
8.2.40.0000.00818.22
8.2.30.0040.00418.08
8.2.20.0060.00317.70
8.2.10.0000.00717.62
8.2.00.0030.00717.67
8.1.280.0090.00625.92
8.1.270.0080.00024.66
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0000.00922.33
8.1.230.0070.00420.88
8.1.220.0000.00917.74
8.1.210.0040.00418.79
8.1.200.0000.00817.25
8.1.190.0080.00017.51
8.1.180.0040.00418.10
8.1.170.0080.00018.84
8.1.160.0040.00418.87
8.1.150.0000.00718.58
8.1.140.0040.00417.45
8.1.130.0030.00317.95
8.1.120.0050.00217.41
8.1.110.0030.00417.30
8.1.100.0000.00717.25
8.1.90.0000.01017.33
8.1.80.0000.00717.39
8.1.70.0030.00317.45
8.1.60.0000.00817.41
8.1.50.0080.00017.46
8.1.40.0060.00317.44
8.1.30.0050.00317.71
8.1.20.0030.00517.57
8.1.10.0040.00417.58
8.1.00.0030.00617.55
8.0.300.0050.00219.95
8.0.290.0040.00416.75
8.0.280.0070.00018.26
8.0.270.0000.00817.17
8.0.260.0030.00316.96
8.0.250.0000.00716.86
8.0.240.0040.00417.00
8.0.230.0040.00416.93
8.0.220.0030.00316.79
8.0.210.0030.00316.97
8.0.200.0060.00016.83
8.0.190.0020.00916.97
8.0.180.0080.00016.98
8.0.170.0000.00816.77
8.0.160.0070.00016.86
8.0.150.0040.00416.76
8.0.140.0040.00416.73
8.0.130.0000.00613.34
8.0.120.0040.00416.88
8.0.110.0040.00416.81
8.0.100.0000.00816.97
8.0.90.0050.00216.78
8.0.80.0060.00916.85
8.0.70.0050.00216.80
8.0.60.0050.00216.78
8.0.50.0020.00516.85
8.0.30.0070.01217.19
8.0.20.0080.01116.96
8.0.10.0000.00716.90
8.0.00.0110.00916.87
7.4.330.0000.00512.95
7.4.320.0000.00616.46
7.4.300.0060.00016.43
7.4.290.0030.00316.44
7.4.280.0000.00816.45
7.4.270.0030.00316.55
7.4.260.0050.00013.18
7.4.250.0050.00316.39
7.4.240.0030.00316.38
7.4.230.0060.00316.54
7.4.220.0070.01116.55
7.4.210.0100.00616.51
7.4.200.0000.00716.57
7.4.190.0040.00416.54
7.4.160.0100.00516.67
7.4.150.0210.00916.49
7.4.140.0090.00916.61
7.4.130.0110.00916.54
7.4.120.0110.00916.56
7.4.110.0100.00716.55
7.4.100.0030.01316.63
7.4.90.0160.01216.49
7.4.80.0110.00619.39
7.4.70.0060.00916.60
7.4.60.0090.00916.27
7.4.50.0000.00516.35
7.4.40.0120.00616.50
7.4.30.0060.01216.21
7.4.00.0000.01615.12
7.3.330.0000.00613.32
7.3.320.0000.00513.37
7.3.310.0040.00416.39
7.3.300.0000.00716.41
7.3.290.0100.01016.34
7.3.280.0100.01016.38
7.3.270.0130.01016.43
7.3.260.0070.01016.55
7.3.250.0100.01016.48
7.3.240.0090.01016.56
7.3.230.0070.01016.50
7.3.210.0090.00616.55
7.3.200.0140.00416.45
7.3.190.0090.01316.47
7.3.180.0100.00716.36
7.3.170.0100.01016.43
7.3.160.0070.00816.33
7.3.120.0030.01314.92
7.2.330.0070.01016.85
7.2.320.0060.01216.73
7.2.310.0130.01316.60
7.2.300.0070.01516.80
7.2.290.0070.01016.56
7.2.00.0100.00619.44
7.1.200.0040.01115.68
7.1.100.0060.00617.86
7.1.70.0030.00616.93
7.1.60.0090.01519.40
7.1.50.0100.01017.09
7.1.00.0070.07022.36
7.0.200.0260.00814.96
7.0.140.0070.06721.97
7.0.120.0070.06722.01
7.0.60.0200.06020.01
7.0.50.0100.07717.81
7.0.40.0030.08319.96
7.0.30.0200.04320.00
7.0.20.0300.08020.25
7.0.10.0300.04020.21
7.0.00.0030.04020.09
5.6.280.0000.07721.03
5.6.210.0130.08020.62
5.6.200.0070.04018.18
5.6.190.0070.04020.59
5.6.180.0230.04720.41
5.6.170.0270.05320.41
5.6.160.0070.07320.44
5.6.150.0070.08318.22
5.6.140.0100.04718.14
5.6.130.0130.06318.16
5.6.120.0170.07720.89
5.6.110.0030.06021.14
5.6.100.0070.05021.11
5.6.90.0000.05321.12
5.6.80.0130.06020.38
5.6.70.0200.06020.32
5.5.350.0270.08020.44
5.5.340.0000.04017.97
5.5.330.0100.07720.42
5.5.320.0300.07020.07
5.5.310.0330.07020.17
5.5.300.0100.07717.98
5.5.290.0070.03718.02
5.5.280.0100.04720.87
5.5.270.0030.08020.84
5.5.260.0000.05020.67
5.5.250.0070.06720.49
5.5.240.0000.04320.15
5.4.450.0270.07319.21
5.4.440.0200.07719.39
5.4.430.0170.07319.48
5.4.420.0230.04319.43
5.4.410.0200.04319.00
5.4.400.0170.07319.16
5.4.390.0300.06719.08
5.4.380.0370.06319.06
5.4.370.0200.08019.10
5.4.360.0300.06719.09
5.4.350.0270.07318.79
5.4.340.0230.06318.81
5.4.320.0200.07319.09
5.4.310.0300.06719.16
5.4.300.0370.08019.09
5.4.290.0300.07719.24
5.4.280.0170.07018.93
5.4.270.0200.07719.08
5.4.260.0200.07718.82
5.4.250.0230.07019.08
5.4.240.0230.05719.05
5.4.230.0230.04718.91
5.4.220.0230.07018.80
5.4.210.0230.07318.80
5.4.200.0170.04018.89
5.4.190.0370.05719.08
5.4.180.0200.07318.77
5.4.170.0130.04019.06
5.4.160.0230.04019.05
5.4.150.0270.06719.10
5.4.140.0170.07716.27
5.4.130.0170.05316.54
5.4.120.0170.03716.22
5.4.110.0270.05716.45
5.4.100.0200.04316.23
5.4.90.0230.07016.34
5.4.80.0200.05716.29
5.4.70.0200.07016.18
5.4.60.0170.05016.37
5.4.50.0230.06316.50
5.4.40.0230.07016.36
5.4.30.0330.04316.38
5.4.20.0170.04016.38
5.4.10.0200.05316.30
5.4.00.0230.07315.75
5.3.290.0270.06014.61
5.3.280.0230.07014.46
5.3.270.0130.05014.55
5.3.260.0200.03714.57
5.3.250.0100.05314.51
5.3.240.0200.06014.46
5.3.230.0230.04014.64
5.3.220.0270.07314.41
5.3.210.0230.05314.55
5.3.200.0300.05014.46
5.3.190.0330.04714.59
5.3.180.0200.07714.47
5.3.170.0200.04014.51
5.3.160.0200.07014.65
5.3.150.0270.07014.47
5.3.140.0170.07314.46
5.3.130.0230.06714.50
5.3.120.0170.05314.54
5.3.110.0330.06314.45
5.3.100.0130.06713.88
5.3.90.0230.06713.93
5.3.80.0200.05713.81
5.3.70.0230.05313.95
5.3.60.0170.07314.07
5.3.50.0270.06313.85
5.3.40.0200.06713.72
5.3.30.0230.07013.89
5.3.20.0170.04713.64
5.3.10.0100.05013.60
5.3.00.0330.04313.49
5.2.170.0170.05712.35
5.2.160.0230.04312.35
5.2.150.0170.04312.35
5.2.140.0170.06012.35
5.2.130.0170.05712.35
5.2.120.0130.06712.35
5.2.110.0200.03012.35
5.2.100.0170.05712.35
5.2.90.0170.05312.35
5.2.80.0270.05312.35
5.2.70.0230.05012.35
5.2.60.0170.05312.35
5.2.50.0200.04312.35
5.2.40.0170.06012.35
5.2.30.0230.05312.35
5.2.20.0200.05712.35
5.2.10.0200.05012.35
5.2.00.0100.05312.35
5.1.60.0200.05012.35
5.1.50.0130.05312.35
5.1.40.0230.03712.35
5.1.30.0170.03312.35
5.1.20.0130.05312.35
5.1.10.0100.05012.35
5.1.00.0270.04312.35
5.0.50.0100.03712.35
5.0.40.0130.02712.35
5.0.30.0100.03312.35
5.0.20.0070.02012.35
5.0.10.0030.02012.35
5.0.00.0030.03312.35
4.4.90.0070.03712.35
4.4.80.0030.03712.35
4.4.70.0070.02312.35
4.4.60.0030.02312.35
4.4.50.0100.03712.35
4.4.40.0100.05312.35
4.4.30.0030.03712.35
4.4.20.0100.03012.35
4.4.10.0030.02712.35
4.4.00.0070.05712.35
4.3.110.0070.02312.35
4.3.100.0100.01312.35
4.3.90.0070.01312.35
4.3.80.0030.02712.35
4.3.70.0070.01312.35
4.3.60.0070.01312.35
4.3.50.0030.01712.35
4.3.40.0030.02712.35
4.3.30.0000.01712.35
4.3.20.0030.01312.35
4.3.10.0030.01312.35
4.3.00.0100.03312.35

preferences:
46.79 ms | 400 KiB | 5 Q