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.0060.00916.63
8.3.50.0030.01516.27
8.3.40.0090.00618.93
8.3.30.0200.00018.67
8.3.20.0070.00020.35
8.3.10.0070.00023.66
8.3.00.0080.00022.57
8.2.180.0030.01216.75
8.2.170.0070.00722.96
8.2.160.0070.00722.06
8.2.150.0000.00724.18
8.2.140.0080.00024.66
8.2.130.0070.00026.16
8.2.120.0000.00817.50
8.2.110.0000.00920.39
8.2.100.0000.01117.84
8.2.90.0030.00619.28
8.2.80.0050.00317.97
8.2.70.0030.00617.50
8.2.60.0040.00417.80
8.2.50.0000.00818.07
8.2.40.0090.00021.12
8.2.30.0040.00419.75
8.2.20.0000.00717.72
8.2.10.0080.00018.12
8.2.00.0040.00418.00
8.1.280.0090.00625.92
8.1.270.0040.00420.38
8.1.260.0050.00326.35
8.1.250.0030.00628.09
8.1.240.0090.00323.92
8.1.230.0080.00420.94
8.1.220.0040.00417.77
8.1.210.0000.00818.77
8.1.200.0000.00917.35
8.1.190.0030.00617.13
8.1.180.0070.00018.10
8.1.170.0000.00818.49
8.1.160.0000.00722.11
8.1.150.0000.00718.88
8.1.140.0040.00417.44
8.1.130.0030.00517.40
8.1.120.0030.00517.30
8.1.110.0000.00717.38
8.1.100.0000.00717.46
8.1.90.0030.00517.43
8.1.80.0000.00717.37
8.1.70.0070.00017.45
8.1.60.0070.00417.48
8.1.50.0000.00817.40
8.1.40.0030.00617.38
8.1.30.0000.00917.59
8.1.20.0000.00717.60
8.1.10.0070.00317.56
8.1.00.0110.00017.52
8.0.300.0070.00018.77
8.0.290.0000.00816.75
8.0.280.0030.00318.48
8.0.270.0070.00017.25
8.0.260.0030.00316.86
8.0.250.0080.00016.90
8.0.240.0060.00016.98
8.0.230.0060.00316.92
8.0.220.0000.00616.98
8.0.210.0070.00017.02
8.0.200.0000.00716.95
8.0.190.0000.00717.01
8.0.180.0050.00216.85
8.0.170.0000.00816.92
8.0.160.0000.00716.91
8.0.150.0040.00416.81
8.0.140.0000.00716.86
8.0.130.0050.00013.39
8.0.120.0000.00816.91
8.0.110.0060.00316.80
8.0.100.0040.00416.83
8.0.90.0030.00417.06
8.0.80.0150.00017.00
8.0.70.0040.00416.81
8.0.60.0000.00816.93
8.0.50.0000.00717.01
8.0.30.0120.00517.22
8.0.20.0140.01017.40
8.0.10.0000.00816.98
8.0.00.0120.00616.60
7.4.330.0030.00315.08
7.4.320.0000.00616.62
7.4.300.0030.00316.58
7.4.290.0030.00316.40
7.4.280.0080.00016.48
7.4.270.0030.00516.43
7.4.260.0000.00716.43
7.4.250.0000.00716.41
7.4.240.0030.00316.54
7.4.230.0070.00016.62
7.4.220.0150.00416.62
7.4.210.0000.01516.60
7.4.200.0030.00316.61
7.4.160.0090.00616.47
7.4.150.0130.00617.40
7.4.140.0090.01417.86
7.4.130.0100.01116.57
7.4.120.0040.01416.57
7.4.110.0110.00616.41
7.4.100.0100.01216.45
7.4.90.0140.00316.46
7.4.80.0120.00619.39
7.4.70.0030.01516.37
7.4.60.0120.00916.62
7.4.50.0000.00916.68
7.4.40.0040.01816.61
7.4.30.0150.01016.35
7.4.00.0110.00014.95
7.3.330.0040.00413.15
7.3.320.0000.00513.17
7.3.310.0040.00416.26
7.3.300.0040.00416.09
7.3.290.0070.00816.27
7.3.280.0070.01316.28
7.3.270.0130.00517.40
7.3.260.0110.01416.26
7.3.250.0060.01116.47
7.3.240.0140.00316.43
7.3.230.0180.00316.44
7.3.210.0110.00616.38
7.3.200.0110.00616.28
7.3.190.0120.00616.37
7.3.180.0080.00816.38
7.3.170.0140.00716.29
7.3.160.0120.00916.65
7.3.120.0070.00714.84
7.3.110.0100.00714.72
7.3.100.0040.01214.80
7.3.90.0100.00714.75
7.3.80.0040.00414.94
7.3.70.0130.00314.70
7.3.60.0070.00714.79
7.3.50.0000.01314.33
7.3.40.0030.00914.75
7.3.30.0030.00614.89
7.3.20.0100.00316.47
7.3.10.0110.00316.67
7.3.00.0040.01116.70
7.2.330.0120.01216.57
7.2.320.0100.01316.30
7.2.310.0090.00916.26
7.2.300.0070.01116.61
7.2.290.0160.00316.35
7.2.240.0060.00914.84
7.2.230.0080.00415.13
7.2.220.0030.00714.92
7.2.210.0000.01715.05
7.2.200.0090.00615.04
7.2.190.0030.00714.95
7.2.180.0070.00714.82
7.2.170.0000.01314.97
7.2.160.0000.01114.87
7.2.150.0140.00317.02
7.2.140.0000.01416.85
7.2.130.0070.00416.80
7.2.120.0000.01116.86
7.2.110.0060.00616.74
7.2.100.0100.00716.67
7.2.90.0140.00316.77
7.2.80.0030.01016.50
7.2.70.0030.01316.75
7.2.60.0030.00916.66
7.2.50.0080.00416.83
7.2.40.0000.00916.97
7.2.30.0080.00416.75
7.2.20.0090.00316.92
7.2.10.0070.00716.75
7.2.00.0070.00618.23
7.1.330.0120.00615.77
7.1.320.0030.01015.76
7.1.310.0090.00415.66
7.1.300.0080.00415.70
7.1.290.0000.01315.79
7.1.280.0070.00715.70
7.1.270.0080.00615.62
7.1.260.0000.01015.50
7.1.250.0000.01315.41
7.1.200.0040.00815.63
7.1.100.0130.00918.04
7.1.70.0000.01217.04
7.1.60.0070.01119.18
7.1.50.0030.02216.72
7.1.00.0030.07722.36
7.0.200.0250.00016.50
7.0.60.0130.07719.85
7.0.50.0130.07317.89
7.0.40.0030.04320.23
7.0.30.0300.07320.34
7.0.20.0230.03720.00
7.0.10.0030.04320.12
7.0.00.0070.06320.01
5.6.280.0030.05721.02
5.6.210.0030.04020.50
5.6.200.0100.03718.12
5.6.190.0030.04320.48
5.6.180.0370.04020.64
5.6.170.0230.04020.50
5.6.160.0130.06320.51
5.6.150.0030.05318.18
5.6.140.0070.04318.12
5.6.130.0070.08318.17
5.6.120.0070.08021.01
5.6.110.0130.08021.00
5.6.100.0130.08020.88
5.6.90.0070.08721.08
5.6.80.0030.08720.53
5.5.350.0300.06320.44
5.5.340.0100.08017.95
5.5.330.0130.07020.21
5.5.320.3030.04020.17
5.5.310.0300.07020.17
5.5.300.0100.07017.95
5.5.290.0070.08717.98
5.5.280.0130.08020.79
5.5.270.0130.08020.75
5.5.260.0100.08020.75
5.5.250.0070.05720.54
5.5.240.0000.08020.12
5.4.450.0770.05719.41
5.4.440.0730.05719.59
5.4.430.0870.05319.62
5.4.420.1000.06019.29
5.4.410.1200.06718.97
5.4.400.0800.06318.95
5.4.390.1000.05718.95
5.4.380.0970.06319.15
5.4.370.0900.06019.30
5.4.360.0930.07718.95
5.4.350.1100.07018.79
5.4.340.0630.06019.30
5.4.320.0770.05718.90
5.4.310.0970.06019.13
5.4.300.0970.04719.15
5.4.290.0870.04718.95
5.4.280.1000.05318.80
5.4.270.0830.05319.16
5.4.260.0930.05019.16
5.4.250.0900.06718.89
5.4.240.1000.05018.94
5.4.230.0970.05019.12
5.4.220.0970.05719.14
5.4.210.1300.06318.96
5.4.200.0770.05716.66
5.4.190.0900.07019.09
5.4.180.0930.05018.95
5.4.170.0900.04719.13
5.4.160.1170.04719.27
5.4.150.0830.06718.95
5.4.140.0900.05716.38
5.4.130.0730.05016.25
5.4.120.0770.05316.44
5.4.110.0730.04716.50
5.4.100.0900.05316.46
5.4.90.0800.06016.46
5.4.80.0970.04716.49
5.4.70.1000.04716.22
5.4.60.0830.05716.29
5.4.50.1000.04716.54
5.4.40.1000.06716.31
5.4.30.0800.05016.24
5.4.20.1030.05716.38
5.4.10.0830.05716.25
5.4.00.0800.04716.03
5.3.290.1100.05014.68
5.3.280.0970.05014.53
5.3.270.0970.05314.44
5.3.260.0670.05314.54
5.3.250.0700.05314.48
5.3.240.0600.05014.48
5.3.230.0930.04714.69
5.3.220.0770.05714.36
5.3.210.0900.05714.52
5.3.200.1370.06014.40
5.3.190.0700.04714.51
5.3.180.0770.05014.44
5.3.170.0670.06014.35
5.3.160.0830.06014.42
5.3.150.0830.07014.40
5.3.140.1000.08014.52
5.3.130.0870.05314.48
5.3.120.0900.05014.38
5.3.110.0670.05714.53
5.3.100.0700.05013.98
5.3.90.0730.04713.97
5.3.80.0730.05014.00
5.3.70.0670.05313.97
5.3.60.0630.06713.78
5.3.50.0830.05313.79
5.3.40.0530.05313.90
5.3.30.0700.06313.84
5.3.20.0630.05013.54
5.3.10.0630.04313.61
5.3.00.0530.05713.52
5.2.170.0300.04311.16
5.2.160.0200.04010.91
5.2.150.0400.04011.01
5.2.140.0330.05010.98
5.2.130.0370.04011.12
5.2.120.0070.04010.99
5.2.110.0630.04010.96
5.2.100.0670.03311.09
5.2.90.0530.04010.90
5.2.80.0030.04710.98
5.2.70.0430.04011.18
5.2.60.0430.04710.93
5.2.50.0570.04310.96
5.2.40.0430.04310.84
5.2.30.0470.04710.81
5.2.20.0630.03311.04
5.2.10.0330.04710.77
5.2.00.0630.04710.65
5.1.60.0670.0239.97
5.1.50.0530.0409.95
5.1.40.0470.04010.04
5.1.30.0470.03710.29
5.1.20.0530.04010.32
5.1.10.0570.04310.05
5.1.00.0530.03010.04
5.0.50.0200.0308.56
5.0.40.0270.0308.47
5.0.30.0230.0508.28
5.0.20.0270.0338.25
5.0.10.0270.0278.24
5.0.00.0200.0478.10
4.4.90.0370.0236.76
4.4.80.0400.0106.77
4.4.70.0300.0176.79
4.4.60.0330.0176.80
4.4.50.0200.0206.80
4.4.40.0200.0336.83
4.4.30.0230.0276.85
4.4.20.0330.0206.87
4.4.10.0330.0176.88
4.4.00.0270.0406.88
4.3.110.0370.0236.88
4.3.100.0200.0236.90
4.3.90.0270.0206.94
4.3.80.0330.0306.98
4.3.70.0300.0236.98
4.3.60.0200.0236.98
4.3.50.0230.0236.98
4.3.40.0270.0376.98
4.3.30.0100.0236.98
4.3.20.0130.0206.98
4.3.10.0130.0206.98
4.3.00.0170.0177.04

preferences:
61.58 ms | 400 KiB | 5 Q