3v4l.org

run code in 300+ PHP versions simultaneously
<?php $my_wp_option = array( 'fruit' => array ( 'apple' => 4, 'banana' => 7, 'orange' => 2 ), 'vegetable' => array( 'carrot' => array( 'big' => 5, 'small' => 8 ), 'tomato' => array( 'big' => 2, 'small' => 5 ), 'potato' => array( 'big' => 1, 'small' => 7 ), 'brocolli' => array( 'big' => 3, 'small' => 6 ) ) ); # add_option = ('my_wp_option', $my_wp_option); # $my_array = get_option ('my_wp_option'); ?>

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.0090.00618.56
8.3.50.0200.00522.11
8.3.40.0140.00318.74
8.3.30.0080.00620.04
8.3.20.0040.00420.31
8.3.10.0060.00321.98
8.3.00.0070.00022.32
8.2.180.0130.00616.32
8.2.170.0090.00622.96
8.2.160.0030.01022.01
8.2.150.0040.00424.18
8.2.140.0050.00324.66
8.2.130.0040.00426.16
8.2.120.0030.00617.38
8.2.110.0060.00322.16
8.2.100.0000.01217.72
8.2.90.0000.00819.17
8.2.80.0040.00419.32
8.2.70.0030.00517.50
8.2.60.0070.00217.91
8.2.50.0080.00018.07
8.2.40.0000.00718.09
8.2.30.0000.00718.04
8.2.20.0000.00717.46
8.2.10.0000.00817.61
8.2.00.0040.00417.59
8.1.280.0140.00325.92
8.1.270.0040.00424.66
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0060.00323.86
8.1.230.0110.00018.97
8.1.220.0040.00417.74
8.1.210.0000.00818.77
8.1.200.0050.00517.25
8.1.190.0000.00817.18
8.1.180.0040.00418.76
8.1.170.0000.00818.49
8.1.160.0080.00018.69
8.1.150.0040.00418.63
8.1.140.0070.00017.42
8.1.130.0050.00217.79
8.1.120.0000.00717.39
8.1.110.0040.00417.36
8.1.100.0000.00817.37
8.1.90.0000.00817.32
8.1.80.0000.00717.28
8.1.70.0000.00717.41
8.1.60.0000.00917.47
8.1.50.0030.00617.45
8.1.40.0050.00217.30
8.1.30.0050.00317.50
8.1.20.0050.00317.48
8.1.10.0040.00417.45
8.1.00.0120.00017.33
8.0.300.0050.00318.77
8.0.290.0040.00417.18
8.0.280.0070.00018.37
8.0.270.0000.00717.23
8.0.260.0000.00616.81
8.0.250.0030.00316.75
8.0.240.0000.00816.84
8.0.230.0000.00716.78
8.0.220.0020.00516.75
8.0.210.0000.00716.68
8.0.200.0030.00316.77
8.0.190.0040.00416.77
8.0.180.0000.00716.84
8.0.170.0050.00316.72
8.0.160.0050.00316.76
8.0.150.0030.00316.84
8.0.140.0000.00716.76
8.0.130.0000.00513.13
8.0.120.0070.00016.67
8.0.110.0050.00316.80
8.0.100.0050.00316.79
8.0.90.0000.00716.73
8.0.80.0000.01516.77
8.0.70.0040.00416.82
8.0.60.0000.00816.71
8.0.50.0040.00416.76
8.0.30.0100.01016.99
8.0.20.0100.00717.40
8.0.10.0030.00316.80
8.0.00.0100.00716.62
7.4.330.0020.00215.04
7.4.320.0030.00316.57
7.4.300.0000.00616.48
7.4.290.0030.00316.57
7.4.280.0030.00316.42
7.4.270.0040.00416.53
7.4.260.0000.00513.16
7.4.250.0040.00416.36
7.4.240.0050.00216.52
7.4.230.0030.00316.56
7.4.220.0030.01716.59
7.4.210.0070.00916.49
7.4.200.0000.00716.54
7.4.190.0030.00316.53
7.4.160.0120.00316.51
7.4.150.0170.00017.40
7.4.140.0140.00517.86
7.4.130.0140.00616.37
7.4.120.0130.00916.43
7.4.110.0100.00716.32
7.4.100.0120.00616.28
7.4.90.0060.01216.30
7.4.80.0060.01219.39
7.4.70.0030.01316.50
7.4.60.0130.00716.34
7.4.50.0040.00416.36
7.4.40.0070.00722.77
7.4.30.0180.00016.24
7.4.00.0060.00914.63
7.3.330.0000.00512.89
7.3.320.0000.00512.92
7.3.310.0070.00016.17
7.3.300.0000.00716.04
7.3.290.0100.00316.12
7.3.280.0100.00716.12
7.3.270.0070.01017.40
7.3.260.0040.01216.21
7.3.250.0060.01216.13
7.3.240.0060.01116.21
7.3.230.0070.01016.41
7.3.210.0100.00616.52
7.3.200.0170.00919.39
7.3.190.0120.01016.18
7.3.180.0130.00316.35
7.3.170.0110.00416.56
7.3.160.0110.00816.06
7.3.120.0080.00814.88
7.2.330.0100.00716.51
7.2.320.0060.01016.43
7.2.310.0060.01116.50
7.2.300.0070.01716.67
7.2.290.0030.01316.49
7.2.60.0070.00716.61
7.2.00.0070.00419.30
7.1.200.0040.00415.65
7.1.100.0090.00617.98
7.1.70.0080.00016.64
7.1.60.0060.00617.18
7.1.50.0040.01216.80
7.1.00.0000.06022.30
7.0.200.0030.00616.66
7.0.140.0070.07021.97
7.0.60.0030.06319.96
7.0.50.0000.09017.80
7.0.40.0100.06720.08
7.0.30.0230.08720.18
7.0.20.0100.04720.33
7.0.10.0100.05320.00
7.0.00.0070.06720.03
5.6.280.0000.07720.89
5.6.210.0100.08020.67
5.6.200.0100.07718.08
5.6.190.0070.04020.41
5.6.180.0270.06320.43
5.6.170.0300.07720.52
5.6.160.0100.05720.38
5.6.150.0130.07318.18
5.6.140.0100.03718.14
5.6.130.0170.06318.11
5.6.120.0070.07721.12
5.6.110.0230.07021.09
5.6.100.0000.04320.97
5.6.90.0030.08320.99
5.6.80.0030.04720.40
5.5.350.0000.03720.49
5.5.340.0070.05018.02
5.5.330.0100.07720.37
5.5.320.0000.08720.20
5.5.310.0200.05020.26
5.5.300.0070.08017.94
5.5.290.0070.04717.91
5.5.280.0030.06720.86
5.5.270.0170.07020.86
5.5.260.0100.03320.76
5.5.250.0070.03720.57
5.5.240.2900.03320.15
5.4.450.1130.04319.13
5.4.440.0470.06019.54
5.4.430.1030.04319.54
5.4.420.0970.03719.38
5.4.410.0470.05719.26
5.4.400.0470.03318.94
5.4.390.0730.05319.09
5.4.380.0300.06018.50
5.4.370.0500.04718.59
5.4.360.0370.04318.68
5.4.350.0070.06718.74
5.4.340.0300.07018.68
5.4.320.0030.03912.45
5.4.310.0070.03712.45
5.4.300.0050.03712.46
5.4.290.0060.03912.45
5.4.280.0070.03412.35
5.4.270.0050.03812.35
5.4.260.0070.03912.34
5.4.250.0050.04512.33
5.4.240.0060.03812.33
5.4.230.0070.04412.32
5.4.220.0090.04012.32
5.4.210.0050.03712.32
5.4.200.0070.03912.32
5.4.190.0070.03812.32
5.4.180.0080.04012.32
5.4.170.0080.03912.33
5.4.160.0050.04112.33
5.4.150.0050.04212.32
5.4.140.0080.04512.00
5.4.130.0070.04111.99
5.4.120.0080.04411.95
5.4.110.0070.04711.94
5.4.100.0070.04011.95
5.4.90.0070.04511.94
5.4.80.0080.04411.94
5.4.70.0070.04011.94
5.4.60.0090.03611.94
5.4.50.0060.04211.94
5.4.40.0070.03711.93
5.4.30.0070.03811.93
5.4.20.0070.03811.92
5.4.10.0070.03511.92
5.4.00.0070.04111.41
5.3.290.0060.03912.80
5.3.280.0080.04412.71
5.3.270.0080.04212.72
5.3.260.0070.04612.72
5.3.250.0060.04312.72
5.3.240.0080.03712.72
5.3.230.0060.04012.71
5.3.220.0090.03612.68
5.3.210.0080.03912.68
5.3.200.0070.04412.68
5.3.190.0100.04012.68
5.3.180.0070.04112.67
5.3.170.0060.04312.67
5.3.160.0060.04012.67
5.3.150.0080.03712.67
5.3.140.0070.03912.66
5.3.130.0060.04012.66
5.3.120.0060.03912.66
5.3.110.0060.04012.66
5.3.100.0060.03712.12
5.3.90.0060.04012.08
5.3.80.0050.03712.08
5.3.70.0070.04212.08
5.3.60.0070.03712.06
5.3.50.0080.03912.00
5.3.40.0050.04412.00
5.3.30.0070.04011.94
5.3.20.0080.03911.70
5.3.10.0070.03711.66
5.3.00.0050.04011.65

preferences:
43.53 ms | 401 KiB | 5 Q