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; print_r( $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.0140.00718.27
8.3.50.0120.00921.92
8.3.40.0110.00418.71
8.3.30.0070.00719.09
8.3.20.0070.00020.21
8.3.10.0080.00022.09
8.3.00.0040.00422.52
8.2.180.0090.00616.60
8.2.170.0180.00422.96
8.2.160.0070.00720.89
8.2.150.0080.00024.18
8.2.140.0000.00824.66
8.2.130.0000.00826.16
8.2.120.0070.00419.13
8.2.110.0060.00321.98
8.2.100.0090.00317.72
8.2.90.0040.00419.27
8.2.80.0060.00317.97
8.2.70.0050.00317.63
8.2.60.0000.00817.93
8.2.50.0040.00418.07
8.2.40.0000.00818.03
8.2.30.0080.00017.95
8.2.20.0040.00417.63
8.2.10.0040.00419.52
8.2.00.0000.00817.69
8.1.280.0140.00025.92
8.1.270.0060.00322.07
8.1.260.0050.00326.35
8.1.250.0080.00028.09
8.1.240.0090.00023.91
8.1.230.0060.00619.01
8.1.220.0030.00717.74
8.1.210.0090.00018.77
8.1.200.0030.00617.25
8.1.190.0040.00417.39
8.1.180.0040.00418.10
8.1.170.0000.00918.58
8.1.160.0000.00721.96
8.1.150.0030.00518.70
8.1.140.0050.00217.41
8.1.130.0050.00317.73
8.1.120.0040.00417.34
8.1.110.0030.00617.32
8.1.100.0000.00717.46
8.1.90.0000.00717.27
8.1.80.0040.00417.43
8.1.70.0000.00717.29
8.1.60.0040.00417.60
8.1.50.0040.00417.45
8.1.40.0030.00517.58
8.1.30.0050.00217.51
8.1.20.0040.00417.66
8.1.10.0000.00717.48
8.1.00.0050.00317.52
8.0.300.0000.00718.77
8.0.290.0000.00817.05
8.0.280.0050.00218.42
8.0.270.0000.00717.11
8.0.260.0030.00316.89
8.0.250.0040.00416.99
8.0.240.0040.00416.86
8.0.230.0040.00417.02
8.0.220.0070.00016.91
8.0.210.0030.00316.81
8.0.200.0000.00616.87
8.0.190.0040.00416.91
8.0.180.0030.00316.98
8.0.170.0030.00516.84
8.0.160.0040.00416.80
8.0.150.0070.00016.98
8.0.140.0000.00716.82
8.0.130.0030.00313.31
8.0.120.0000.00816.78
8.0.110.0000.00916.81
8.0.100.0000.00716.91
8.0.90.0000.00716.99
8.0.80.0090.00616.88
8.0.70.0040.00416.82
8.0.60.0040.00416.75
8.0.50.0040.00416.70
8.0.30.0110.00817.06
8.0.20.0060.01417.42
8.0.10.0080.00016.87
8.0.00.0070.01116.66
7.4.330.0050.00015.03
7.4.320.0030.00316.46
7.4.300.0040.00416.45
7.4.290.0030.00316.57
7.4.280.0060.00016.49
7.4.270.0000.00716.57
7.4.260.0000.00716.56
7.4.250.0000.00816.42
7.4.240.0030.00516.39
7.4.230.0000.00716.31
7.4.220.0130.01016.59
7.4.210.0050.00916.55
7.4.200.0030.00316.46
7.4.190.0040.00416.59
7.4.160.0100.01316.43
7.4.150.0070.01017.40
7.4.140.0120.01117.86
7.4.130.0110.00616.50
7.4.120.0090.00916.51
7.4.110.0100.00716.39
7.4.100.0060.01116.67
7.4.90.0040.01716.57
7.4.80.0090.00919.39
7.4.70.0100.00716.43
7.4.60.0090.00616.52
7.4.50.0040.00416.53
7.4.40.0130.00322.77
7.4.30.0030.01216.75
7.4.00.0040.01114.96
7.3.330.0000.00813.25
7.3.320.0050.00013.25
7.3.310.0030.00316.41
7.3.300.0030.00316.26
7.3.290.0070.00716.39
7.3.280.0040.01216.40
7.3.270.0030.01517.40
7.3.260.0150.00616.60
7.3.250.0150.00516.48
7.3.240.0140.00316.43
7.3.230.0130.00316.41
7.3.210.0080.00816.36
7.3.200.0130.01019.39
7.3.190.0090.01416.63
7.3.180.0120.00316.51
7.3.170.0090.00616.47
7.3.160.0000.01616.28
7.3.120.0040.01114.97
7.3.10.0040.01116.68
7.3.00.0030.01116.72
7.2.330.0090.00916.76
7.2.320.0100.01316.76
7.2.310.0100.01016.74
7.2.300.0090.00816.57
7.2.290.0060.01516.71
7.2.130.0090.00516.86
7.2.120.0050.00716.99
7.2.110.0030.01216.93
7.2.100.0060.00816.94
7.2.90.0060.00916.97
7.2.80.0060.00816.72
7.2.70.0080.00717.06
7.2.60.0080.01016.96
7.2.50.0020.01117.08
7.2.40.0080.00516.83
7.2.30.0080.00816.92
7.2.20.0050.00816.88
7.2.10.0050.00716.91
7.2.00.0040.01117.02
7.1.250.0060.00615.54
7.1.200.0060.00615.68
7.1.70.0060.00316.88
7.1.60.0110.01519.82
7.1.50.0110.01416.90
7.1.00.0030.07722.36
7.0.200.0140.00316.75
7.0.140.0000.07321.96
7.0.60.0030.08319.97
7.0.50.0030.08717.81
7.0.40.0070.06020.40
7.0.30.0300.08320.20
7.0.20.0330.08020.08
7.0.10.0030.06320.04
7.0.00.0030.04020.12
5.6.280.0130.06320.91
5.6.210.0030.04020.66
5.6.200.0070.08318.21
5.6.190.0030.09020.64
5.6.180.3600.04320.57
5.6.170.0330.08020.50
5.6.160.0100.08320.32
5.6.150.0200.05718.17
5.6.140.0100.06318.21
5.6.130.0100.04018.18
5.6.120.0170.07321.00
5.6.110.0070.08020.95
5.6.100.0070.08720.95
5.6.90.0170.07320.96
5.6.80.0070.08320.35
5.6.70.4200.04020.36
5.5.350.0170.06020.39
5.5.340.0100.08017.92
5.5.330.0070.06720.07
5.5.320.4130.04320.24
5.5.310.0230.06720.29
5.5.300.0100.07017.91
5.5.290.0100.08018.00
5.5.280.0200.07020.73
5.5.270.0170.07320.75
5.5.260.0100.03720.85
5.5.250.0030.05320.49
5.5.240.0130.05720.28
5.4.450.0200.03719.39
5.4.440.0230.03319.57
5.4.430.0430.03719.48
5.4.420.0230.03019.37
5.4.410.0200.03319.33
5.4.400.0270.03019.06
5.4.390.0170.03719.09
5.4.380.0300.06719.13
5.4.370.0270.06018.79
5.4.360.0300.07019.07
5.4.350.0300.05719.13
5.4.340.0300.05718.79
5.4.320.0270.06719.09
5.4.310.0300.07019.09
5.4.300.0200.04718.91
5.4.290.0270.08019.24
5.4.280.0230.04318.88
5.4.270.0300.03719.25
5.4.260.0270.06718.80
5.4.250.0330.04719.08
5.4.240.0230.06719.15
5.4.230.0300.06719.24
5.4.220.0200.04719.04
5.4.210.0230.03718.91
5.4.200.0230.04319.08
5.4.190.0200.04718.89
5.4.180.0270.03318.80
5.4.170.0400.06019.07
5.4.160.0300.05319.19
5.4.150.0270.07719.07
5.4.140.0330.06316.26
5.4.130.0200.04316.32
5.4.120.0170.04016.27
5.4.110.0300.06716.22
5.4.100.0300.06316.39
5.4.90.0270.04016.46
5.4.80.0300.06016.37
5.4.70.0230.05016.34
5.4.60.0230.03716.36
5.4.50.0330.07016.36
5.4.40.0270.04016.38
5.4.30.0400.06016.41
5.4.20.0200.04316.47
5.4.10.0270.03016.18
5.4.00.0200.05015.88
5.3.290.0300.07014.69
5.3.280.0300.07014.62
5.3.270.0230.08014.59
5.3.260.0330.07014.44
5.3.250.0300.05714.51
5.3.240.0330.05314.51
5.3.230.0270.04014.50
5.3.220.0230.07714.52
5.3.210.0300.06714.44
5.3.200.0300.06714.45
5.3.190.0300.07014.63
5.3.180.0300.05714.51
5.3.170.0230.05014.47
5.3.160.0270.03314.39
5.3.150.0230.05714.44
5.3.140.0370.06014.51
5.3.130.0200.05014.42
5.3.120.0230.06014.39
5.3.110.0200.04014.49
5.3.100.0270.07014.06
5.3.90.0300.03013.94
5.3.80.0330.03014.00
5.3.70.0230.06313.96
5.3.60.0330.04014.11
5.3.50.0230.04313.78
5.3.40.0170.04713.99
5.3.30.0230.03713.75
5.3.20.0370.03713.54
5.3.10.0270.06713.51
5.3.00.0300.06313.54
5.2.170.0270.05311.84
5.2.160.0270.05311.84
5.2.150.0200.04011.84
5.2.140.0230.03711.84
5.2.130.0200.04711.84
5.2.120.0200.03311.84
5.2.110.0270.03011.84
5.2.100.0230.05311.84
5.2.90.0270.05711.84
5.2.80.0230.05311.84
5.2.70.0270.03311.84
5.2.60.0270.04311.84
5.2.50.0300.05711.84
5.2.40.0170.03011.84
5.2.30.0200.04011.84
5.2.20.0300.05011.84
5.2.10.0200.05711.84
5.2.00.0270.05311.84
5.1.60.0170.02711.84
5.1.50.0130.03311.84
5.1.40.0170.02711.84
5.1.30.0270.03011.84
5.1.20.0270.02311.84
5.1.10.0200.03311.84
5.1.00.0230.05011.84
5.0.50.0100.03011.84
5.0.40.0100.03711.84
5.0.30.0130.06311.84
5.0.20.0100.02711.84
5.0.10.0130.03711.84
5.0.00.0100.06711.84
4.4.90.0130.03311.84
4.4.80.0100.01711.84
4.4.70.0130.02011.84
4.4.60.0130.02311.84
4.4.50.0100.02711.84
4.4.40.0130.03011.84
4.4.30.0030.02311.84
4.4.20.0070.02711.84
4.4.10.0100.02011.84
4.4.00.0100.05311.84
4.3.110.0130.03311.84
4.3.100.0070.02311.84
4.3.90.0130.03311.84
4.3.80.0200.04011.84
4.3.70.0130.01711.84
4.3.60.0100.03311.84
4.3.50.0070.04011.84
4.3.40.0070.04711.84
4.3.30.0070.03711.84
4.3.20.0070.02311.84
4.3.10.0070.01711.84
4.3.00.0070.01311.84

preferences:
39.25 ms | 401 KiB | 5 Q