3v4l.org

run code in 300+ PHP versions simultaneously
<?php $row = '{ "persona_apellido": "hey", "persona_apellido-maxwidth": 48, "persona_curso": "info", "persona_curso-maxwidth": 32, "persona_email": "dude@dude.com", "persona_email-maxwidth": 128, "persona_freg": "2013-08-15 17:03:58", "persona_freg-maxwidth": 152, "persona_id": "3", "persona_id-maxwidth": 8, "persona_nombre": "dude", "persona_nombre-maxwidth": 64, "up_persona_apellido": "", "up_persona_curso": "", "up_persona_email": "", "up_persona_freg": "", "up_persona_id": "", "up_persona_nombre": ""}'; $row = json_decode($row, true); $queryIn = '';$ladoA = 0;$ladoB = 0; foreach($row as $k => $value){ if(strstr($k,'-maxwidth') === false && strstr($k,'itemSelected') === false){ if(!empty($value) && strstr($k,'up_') !== false){ $queryIn += ' '.substr($k, 3, strlen($k)).'='.$value; $ladoA++; }else{ $queryIn += ' '.$k.'='.$value; $ladoB++; } } } var_dump($row); echo $queryIn;

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.0100.01018.78
8.3.50.0140.00722.13
8.3.40.0000.01618.92
8.3.30.0030.01219.04
8.3.20.0040.00420.30
8.3.10.0040.00423.66
8.3.00.0080.00020.95
8.2.180.0150.00318.66
8.2.170.0100.01022.96
8.2.160.0070.00720.38
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0030.00626.16
8.2.120.0030.00620.77
8.2.110.0040.00422.12
8.2.100.0040.00818.03
8.2.90.0030.00619.17
8.2.80.0040.00417.97
8.2.70.0030.00617.63
8.2.60.0080.00018.04
8.2.50.0000.00918.07
8.2.40.0000.00819.89
8.2.30.0040.00418.19
8.2.20.0040.00417.81
8.2.10.0050.00218.17
8.2.00.0000.00817.68
8.1.280.0070.01425.92
8.1.270.0060.00323.88
8.1.260.0050.00326.35
8.1.250.0050.00328.09
8.1.240.0040.00423.96
8.1.230.0000.01219.21
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0030.00617.35
8.1.190.0000.00817.48
8.1.180.0000.00818.10
8.1.170.0040.00418.52
8.1.160.0040.00422.02
8.1.150.0030.00518.69
8.1.140.0040.00417.34
8.1.130.0000.00717.77
8.1.120.0000.00817.38
8.1.110.0040.00417.45
8.1.100.0050.00217.48
8.1.90.0050.00217.43
8.1.80.0000.00717.41
8.1.70.0070.00017.43
8.1.60.0000.00917.64
8.1.50.0040.00417.53
8.1.40.0080.00017.50
8.1.30.0040.00417.59
8.1.20.0000.00817.56
8.1.10.0000.00717.58
8.1.00.0040.00417.51
8.0.300.0040.00418.77
8.0.290.0000.00817.05
8.0.280.0000.00718.43
8.0.270.0030.00317.31
8.0.260.0000.00717.25
8.0.250.0030.00317.09
8.0.240.0000.00717.03
8.0.230.0000.00716.96
8.0.220.0000.00716.93
8.0.210.0040.00416.84
8.0.200.0040.00416.93
8.0.190.0030.00616.91
8.0.180.0050.00216.95
8.0.170.0040.00416.97
8.0.160.0070.00016.97
8.0.150.0040.00416.88
8.0.140.0050.00516.98
8.0.130.0030.00613.35
8.0.120.0030.00516.97
8.0.110.0070.00016.79
8.0.100.0030.00516.85
8.0.90.0040.00416.92
8.0.80.0000.01716.99
8.0.70.0000.00716.77
8.0.60.0040.00416.77
8.0.50.0030.00516.87
8.0.30.0120.00617.34
8.0.20.0080.01417.40
8.0.10.0050.00217.04
8.0.00.0060.01116.78
7.4.330.0020.00215.08
7.4.320.0030.00316.61
7.4.300.0040.00416.48
7.4.290.0040.00416.53
7.4.280.0040.00416.39
7.4.270.0080.00016.65
7.4.260.0000.00716.45
7.4.250.0000.00716.57
7.4.240.0050.00216.61
7.4.230.0030.00316.45
7.4.220.0070.01016.54
7.4.210.0110.00616.57
7.4.200.0040.00416.56
7.4.190.0000.00816.62
7.4.160.0180.00016.48
7.4.150.0100.00917.40
7.4.140.0090.00917.86
7.4.130.0110.01016.59
7.4.120.0110.00716.50
7.4.110.0060.01316.38
7.4.100.0030.01616.38
7.4.90.0070.01116.42
7.4.80.0090.01419.39
7.4.70.0060.01216.47
7.4.60.0100.00716.46
7.4.50.0050.00016.48
7.4.40.0050.01816.37
7.4.30.0040.01416.39
7.4.00.0070.01115.14
7.3.330.0000.00513.17
7.3.320.0020.00213.25
7.3.310.0030.00316.43
7.3.300.0050.00316.22
7.3.290.0030.01216.43
7.3.280.0120.00916.34
7.3.270.0090.00917.40
7.3.260.0100.01616.61
7.3.250.0140.00416.46
7.3.240.0150.00416.58
7.3.230.0110.00716.60
7.3.210.0110.00616.52
7.3.200.0140.00719.39
7.3.190.0130.00616.54
7.3.180.0030.01216.33
7.3.170.0130.00516.37
7.3.160.0170.00016.38
7.3.120.0110.00714.78
7.3.110.0000.01815.02
7.3.100.0040.01114.43
7.3.90.0080.00814.52
7.3.80.0090.00314.81
7.3.70.0070.00714.60
7.3.60.0080.00414.55
7.3.50.0000.01714.70
7.3.40.0100.00714.54
7.3.30.0080.00814.76
7.3.20.0090.00616.67
7.3.10.0130.00316.59
7.3.00.0100.00616.57
7.2.330.0100.00916.73
7.2.320.0120.00616.66
7.2.310.0070.01116.75
7.2.300.0090.02416.87
7.2.290.0150.00516.78
7.2.240.0070.01014.90
7.2.230.0000.01714.74
7.2.220.0080.00415.09
7.2.210.0100.00714.79
7.2.200.0040.00814.81
7.2.190.0110.00414.57
7.2.180.0030.01314.91
7.2.170.0000.01814.57
7.2.160.0040.01114.84
7.2.150.0070.00716.69
7.2.140.0100.00616.63
7.2.130.0000.01416.96
7.2.120.0080.00517.03
7.2.110.0030.01017.00
7.2.100.0110.00416.98
7.2.90.0000.01717.02
7.2.80.0100.00617.15
7.2.70.0030.00917.03
7.2.60.0080.00716.81
7.2.50.0130.00316.92
7.2.40.0080.00417.05
7.2.30.0070.01016.63
7.2.20.0060.00616.33
7.2.10.0110.00616.61
7.2.00.0050.01017.97
7.1.330.0120.00015.87
7.1.320.0100.00015.44
7.1.310.0030.01015.60
7.1.300.0110.00415.59
7.1.290.0070.01015.48
7.1.280.0040.01415.73
7.1.270.0040.01115.65
7.1.260.0000.01015.77
7.1.250.0070.00716.02
7.1.200.0060.00615.91
7.1.100.0100.01018.39
7.1.70.0030.01217.16
7.1.60.0070.01719.46
7.1.50.0100.00316.92
7.1.00.0070.07322.54
7.0.200.0060.00316.69
7.0.140.0000.07722.15
7.0.60.0070.08019.95
7.0.50.0030.08317.93
7.0.40.0100.04720.27
7.0.30.0330.07020.02
7.0.20.0270.06720.17
7.0.10.0130.05020.17
7.0.00.0030.05320.16
5.6.280.0100.06721.13
5.6.210.0100.08320.76
5.6.200.0070.07018.19
5.6.190.0030.08720.77
5.6.180.0100.05020.39
5.6.170.0230.05020.51
5.6.160.0070.08720.65
5.6.150.0030.06718.16
5.6.140.0100.07318.21
5.6.130.0070.07018.12
5.6.120.0070.04321.11
5.6.110.0170.07721.08
5.6.100.0100.07021.08
5.6.90.0130.07721.00
5.6.80.0130.07320.37
5.5.350.0070.08020.30
5.5.340.0030.04018.02
5.5.330.0070.04320.28
5.5.320.0230.04320.22
5.5.310.0230.05320.26
5.5.300.0030.08717.90
5.5.290.0070.07017.91
5.5.280.0070.04020.77
5.5.270.0070.03720.88
5.5.260.0030.05020.95
5.5.250.0100.03720.70
5.5.240.0070.05720.15
5.4.450.1000.04719.52
5.4.440.0900.05319.47
5.4.430.0570.06719.13
5.4.420.0370.05719.48
5.4.410.0130.05719.14
5.4.400.0830.06319.17
5.4.390.1000.06319.28
5.4.380.0170.06018.77
5.4.370.0330.05318.72
5.4.360.0170.04318.77
5.4.350.0070.05718.54
5.4.340.0330.05718.68
5.4.320.0070.03812.46
5.4.310.0060.04012.46
5.4.300.0060.03812.46
5.4.290.0100.04812.45
5.4.280.0080.05612.35
5.4.270.0100.05212.35
5.4.260.0060.05512.35
5.4.250.0130.07012.36
5.4.240.0050.05812.35
5.4.230.0070.05412.34
5.4.220.0150.05912.34
5.4.210.0050.05512.34
5.4.200.0070.05612.34
5.4.190.0100.05312.34
5.4.180.0080.05212.34
5.4.170.0150.05712.36
5.4.160.0080.05012.35
5.4.150.0160.05612.34
5.4.140.0070.05612.03
5.4.130.0100.03812.02
5.4.120.0090.04911.98
5.4.110.0060.04411.98
5.4.100.0080.03911.97
5.4.90.0070.04611.97
5.4.80.0040.04311.98
5.4.70.0090.03511.97
5.4.60.0040.03711.97
5.4.50.0090.03411.97
5.4.40.0090.03411.96
5.4.30.0090.03711.95
5.4.20.0070.04111.95
5.4.10.0100.03811.95
5.4.00.0080.04111.45
5.3.290.0070.03812.80
5.3.280.0080.05212.71
5.3.270.0080.05812.72
5.3.260.0100.05312.72
5.3.250.0070.04812.72
5.3.240.0060.04112.72
5.3.230.0100.05512.71
5.3.220.0140.05412.68
5.3.210.0090.05512.68
5.3.200.0080.05012.68
5.3.190.0100.03812.68
5.3.180.0070.05412.67
5.3.170.0070.05412.67
5.3.160.0080.05312.67
5.3.150.0050.04212.67
5.3.140.0050.04612.66
5.3.130.0110.05312.66
5.3.120.0140.04912.66
5.3.110.0070.04712.65
5.3.100.0020.04112.12
5.3.90.0030.04012.08
5.3.80.0090.04012.08
5.3.70.0110.03412.07
5.3.60.0040.04012.07
5.3.50.0040.04012.00
5.3.40.0070.03712.00
5.3.30.0080.03711.95
5.3.20.0090.03811.73
5.3.10.0060.03811.70
5.3.00.0090.03611.69
5.2.170.0070.0399.19
5.2.160.0060.0289.18
5.2.150.0070.0299.19
5.2.140.0030.0359.18
5.2.130.0070.0389.14
5.2.120.0080.0309.14
5.2.110.0070.0309.15
5.2.100.0060.0309.15
5.2.90.0050.0319.15
5.2.80.0080.0369.14
5.2.70.0060.0349.14
5.2.60.0080.0429.09
5.2.50.0110.0399.06
5.2.40.0090.0269.04
5.2.30.0030.0379.02
5.2.20.0080.0379.00
5.2.10.0090.0338.94
5.2.00.0080.0368.80
5.1.60.0060.0248.07
5.1.50.0050.0348.07
5.1.40.0050.0258.05
5.1.30.0050.0588.39
5.1.20.0060.0298.43
5.1.10.0070.0268.16
5.1.00.0030.0288.16
5.0.50.0030.0226.64
5.0.40.0040.0246.50
5.0.30.0050.0326.30
5.0.20.0040.0226.28
5.0.10.0120.0316.26
5.0.00.0050.0356.25
4.4.90.0060.0294.78
4.4.80.0040.0214.75
4.4.70.0050.0214.75
4.4.60.0080.0364.76
4.4.50.0010.0204.77
4.4.40.0120.0414.71
4.4.30.0090.0364.76
4.4.20.0040.0374.84
4.4.10.0050.0204.85
4.4.00.0060.0324.76
4.3.110.0050.0204.67
4.3.100.0050.0244.66
4.3.90.0060.0224.64
4.3.80.0050.0354.58
4.3.70.0050.0214.63
4.3.60.0050.0224.62
4.3.50.0040.0234.63
4.3.40.0030.0444.54
4.3.30.0020.0243.30
4.3.20.0000.0243.28
4.3.10.0040.0203.24
4.3.00.0200.0236.92

preferences:
50.6 ms | 400 KiB | 5 Q