3v4l.org

run code in 300+ PHP versions simultaneously
<?php $_status = array( '1' => array('name' => 'Active', 'background' => '#FFF', 'color' => '#000'), '2' => array('name' => 'Purchased', 'background' => '#C6EFCE', 'color' => '#006100'), '3' => array('name' => 'Expired', 'background' => '#FFC7CE', 'color' => '#FFC7CE'), ); $status = array_map(function($e){return $e['name'];}, $_status); var_dump($status);

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.0120.00318.56
8.3.50.0120.00722.96
8.3.40.0140.00418.63
8.3.30.0070.00719.11
8.3.20.0070.00320.38
8.3.10.0040.00423.58
8.3.00.0080.00019.13
8.2.180.0040.01216.75
8.2.170.0090.00622.96
8.2.160.0040.01120.39
8.2.150.0040.00424.18
8.2.140.0000.00824.66
8.2.130.0070.00026.16
8.2.120.0040.00420.89
8.2.110.0040.00719.17
8.2.100.0080.00317.91
8.2.90.0080.00019.14
8.2.80.0030.00517.97
8.2.70.0080.00017.63
8.2.60.0040.00418.05
8.2.50.0090.00318.07
8.2.40.0030.00518.34
8.2.30.0040.00418.11
8.2.20.0080.00017.66
8.2.10.0070.00018.05
8.2.00.0040.00417.63
8.1.280.0110.00725.92
8.1.270.0040.00421.89
8.1.260.0040.00426.35
8.1.250.0070.00328.09
8.1.240.0060.00322.64
8.1.230.0000.01217.42
8.1.220.0000.00817.79
8.1.210.0030.00618.77
8.1.200.0030.00617.38
8.1.190.0030.00517.22
8.1.180.0030.00518.10
8.1.170.0040.00418.61
8.1.160.0070.00021.98
8.1.150.0040.00418.95
8.1.140.0000.00817.52
8.1.130.0030.00317.82
8.1.120.0000.00817.44
8.1.110.0040.00417.50
8.1.100.0000.00817.46
8.1.90.0040.00417.44
8.1.80.0070.00017.46
8.1.70.0030.00317.42
8.1.60.0000.00817.60
8.1.50.0040.00417.59
8.1.40.0050.00217.45
8.1.30.0000.00817.60
8.1.20.0000.00717.50
8.1.10.0040.00417.47
8.1.00.0000.00717.35
8.0.300.0030.00618.77
8.0.290.0040.00416.75
8.0.280.0040.00418.36
8.0.270.0000.00717.24
8.0.260.0060.00017.25
8.0.250.0000.00716.88
8.0.240.0110.00016.79
8.0.230.0030.00316.85
8.0.220.0030.00316.86
8.0.210.0000.00816.73
8.0.200.0030.00316.94
8.0.190.0070.00016.95
8.0.180.0030.00316.91
8.0.170.0000.00916.94
8.0.160.0030.00316.97
8.0.150.0030.00316.74
8.0.140.0030.00616.80
8.0.130.0030.00313.28
8.0.120.0000.00816.85
8.0.110.0030.00516.96
8.0.100.0040.00416.78
8.0.90.0040.00416.88
8.0.80.0130.00316.91
8.0.70.0000.00716.92
8.0.60.0000.00716.79
8.0.50.0000.00716.79
8.0.30.0110.01117.05
8.0.20.0130.01117.40
8.0.10.0030.00516.96
8.0.00.0120.00716.78
7.4.330.0000.00515.14
7.4.320.0070.00016.58
7.4.300.0030.00316.61
7.4.290.0000.00716.41
7.4.280.0100.00016.40
7.4.270.0030.00316.52
7.4.260.0040.00416.44
7.4.250.0030.00516.48
7.4.240.0030.00416.45
7.4.230.0050.00316.64
7.4.220.0140.00316.53
7.4.210.0150.00616.50
7.4.200.0040.00416.42
7.4.160.0080.01316.21
7.4.150.0080.00917.40
7.4.140.0120.00517.86
7.4.130.0040.01216.56
7.4.120.0110.00616.43
7.4.110.0070.01016.53
7.4.100.0060.01216.46
7.4.90.0140.00316.48
7.4.80.0130.00919.39
7.4.70.0090.00916.42
7.4.60.0070.01016.35
7.4.50.0050.00516.25
7.4.40.0060.00916.38
7.4.30.0030.01816.48
7.4.00.0000.01514.93
7.3.330.0000.00513.41
7.3.320.0050.00013.16
7.3.310.0030.00316.32
7.3.300.0030.00316.17
7.3.290.0110.00316.25
7.3.280.0100.00916.22
7.3.270.0030.01417.40
7.3.260.0120.00916.35
7.3.250.0080.00916.37
7.3.240.0100.00716.33
7.3.230.0060.01216.61
7.3.210.0030.01316.24
7.3.200.0030.01419.39
7.3.190.0030.01516.41
7.3.180.0090.00816.46
7.3.170.0150.00616.29
7.3.160.0060.00916.60
7.2.330.0060.01216.68
7.2.320.0130.00316.46
7.2.310.0070.01016.24
7.2.300.0090.00916.22
7.2.290.0090.00916.36
7.2.60.0060.00316.96
7.1.200.0090.00615.66
7.1.100.0000.01418.04
7.1.70.0000.00816.84
7.1.60.0130.00619.46
7.1.50.0060.00616.96
7.1.00.0100.07022.51
7.0.200.0000.00916.71
7.0.140.0130.06722.10
7.0.60.0100.03320.08
7.0.50.0070.08317.87
7.0.40.0030.09019.96
7.0.30.0370.04020.22
7.0.20.0270.07720.06
7.0.10.0100.08020.11
7.0.00.0030.04020.19
5.6.210.0100.08320.50
5.6.200.0070.05318.24
5.6.190.0070.08320.39
5.6.180.3530.04320.46
5.6.170.0170.09720.39
5.6.160.0070.08020.56
5.6.150.0000.06318.18
5.6.140.0070.05318.28
5.6.130.0000.04718.18
5.6.120.0070.08020.82
5.6.110.0130.05720.98
5.6.100.0070.08320.97
5.6.90.0000.05321.13
5.6.80.0030.04020.41
5.5.350.0100.03720.32
5.5.340.0130.05318.03
5.5.330.0070.04320.42
5.5.320.0270.04320.27
5.5.310.0200.05020.28
5.5.300.0100.03317.95
5.5.290.0030.04018.07
5.5.280.0170.06020.94
5.5.270.0070.04320.64
5.5.260.0000.09320.80
5.5.250.0070.08020.66
5.5.240.0270.04020.37
5.4.450.0430.04719.64
5.4.440.0500.04019.57
5.4.430.0170.04319.16
5.4.420.0200.04319.55
5.4.410.0070.03719.41
5.4.400.0230.04719.22
5.4.390.0430.04719.07
5.4.380.0430.05018.75
5.4.370.0330.05018.77
5.4.360.0270.05718.77
5.4.350.0400.05018.50
5.4.340.0300.05718.82
5.4.320.0060.03612.50
5.4.310.0060.03712.50
5.4.300.0070.03512.50
5.4.290.0060.03712.50
5.4.280.0030.03712.39
5.4.270.0040.03612.40
5.4.260.0050.03812.39
5.4.250.0040.03912.39
5.4.240.0090.03312.39
5.4.230.0040.03812.39
5.4.220.0050.03612.38
5.4.210.0090.03212.39
5.4.200.0070.03712.39
5.4.190.0080.03312.38
5.4.180.0070.03912.38
5.4.170.0070.03612.39
5.4.160.0040.03912.39
5.4.150.0060.03612.39
5.4.140.0070.03612.07
5.4.130.0060.03612.06
5.4.120.0050.03912.02
5.4.110.0050.03712.01
5.4.100.0040.04512.02
5.4.90.0050.04212.01
5.4.80.0040.04212.01
5.4.70.0050.04112.01
5.4.60.0050.03512.01
5.4.50.0060.03512.01
5.4.40.0060.04012.00
5.4.30.0080.03811.99
5.4.20.0090.04311.99
5.4.10.0050.03511.99
5.4.00.0080.03711.48
5.3.290.0090.03612.80
5.3.280.0070.03612.71
5.3.270.0130.04312.72
5.3.260.0070.04112.72
5.3.250.0070.05012.72
5.3.240.0070.03612.72
5.3.230.0050.03912.71
5.3.220.0070.03612.68
5.3.210.0070.04312.68
5.3.200.0050.03712.68
5.3.190.0050.03812.68
5.3.180.0060.03612.67
5.3.170.0080.03512.67
5.3.160.0050.03812.67
5.3.150.0080.03512.67
5.3.140.0050.03712.66
5.3.130.0070.03812.66
5.3.120.0050.03912.66
5.3.110.0030.04112.65
5.3.100.0040.03912.12
5.3.90.0070.03612.09
5.3.80.0100.03312.09
5.3.70.0090.03312.09
5.3.60.0080.03712.07
5.3.50.0020.03912.03
5.3.40.0050.03612.03
5.3.30.0070.03411.98
5.3.20.0050.03711.76
5.3.10.0060.04011.72
5.3.00.0060.03511.71
5.2.170.0040.0319.18
5.2.160.0100.0239.18
5.2.150.0040.0309.18
5.2.140.0040.0319.18
5.2.130.0070.0269.14
5.2.120.0030.0299.14
5.2.110.0040.0409.15
5.2.100.0050.0299.14
5.2.90.0070.0309.14
5.2.80.0040.0309.14
5.2.70.0040.0309.14
5.2.60.0080.0329.09
5.2.50.0040.0309.06
5.2.40.0040.0399.04
5.2.30.0040.0359.01
5.2.20.0020.0339.00
5.2.10.0060.0328.93
5.2.00.0070.0328.79
5.1.60.0030.0258.07
5.1.50.0020.0268.07
5.1.40.0060.0298.04
5.1.30.0000.0308.40
5.1.20.0070.0248.41
5.1.10.0040.0268.14
5.1.00.0080.0228.15
5.0.50.0040.0196.62
5.0.40.0040.0196.49
5.0.30.0020.0326.29
5.0.20.0040.0186.26
5.0.10.0040.0266.24
5.0.00.0050.0376.24
4.4.90.0040.0144.78
4.4.80.0010.0174.75
4.4.70.0020.0174.76
4.4.60.0040.0154.76
4.4.50.0030.0184.77
4.4.40.0040.0264.71
4.4.30.0040.0144.76
4.4.20.0020.0164.84
4.4.10.0040.0174.85
4.4.00.0050.0224.76
4.3.110.0020.0214.67
4.3.100.0040.0134.66
4.3.90.0040.0124.63
4.3.80.0030.0234.58
4.3.70.0050.0134.63
4.3.60.0020.0174.63
4.3.50.0040.0144.63
4.3.40.0030.0244.54
4.3.30.0010.0173.29
4.3.20.0020.0163.27
4.3.10.0010.0163.22
4.3.00.0030.01718.41

preferences:
40.51 ms | 401 KiB | 5 Q