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).'='.$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.01016.61
8.3.50.0090.00821.99
8.3.40.0070.00718.84
8.3.30.0040.01119.25
8.3.20.0040.00420.29
8.3.10.0000.00723.58
8.3.00.0000.00820.76
8.2.180.0030.01418.31
8.2.170.0070.00722.96
8.2.160.0120.00620.43
8.2.150.0030.00524.18
8.2.140.0140.00024.66
8.2.130.0030.00526.16
8.2.120.0080.00020.65
8.2.110.0100.00019.27
8.2.100.0080.00417.91
8.2.90.0030.00619.09
8.2.80.0000.00817.97
8.2.70.0030.00617.75
8.2.60.0000.00718.04
8.2.50.0040.00418.07
8.2.40.0030.00619.82
8.2.30.0030.00518.19
8.2.20.0040.00417.63
8.2.10.0000.00818.23
8.2.00.0030.00517.88
8.1.280.0140.00725.92
8.1.270.0060.00323.82
8.1.260.0040.00426.35
8.1.250.0000.00828.09
8.1.240.0090.00020.99
8.1.230.0090.00317.42
8.1.220.0080.00017.74
8.1.210.0000.00818.77
8.1.200.0060.00317.35
8.1.190.0030.00517.35
8.1.180.0040.00418.10
8.1.170.0000.00818.51
8.1.160.0050.00221.95
8.1.150.0000.00718.52
8.1.140.0000.00717.40
8.1.130.0000.00717.84
8.1.120.0000.00817.45
8.1.110.0070.00017.44
8.1.100.0000.00717.46
8.1.90.0040.00417.51
8.1.80.0050.00317.40
8.1.70.0030.00317.48
8.1.60.0060.00317.51
8.1.50.0030.00517.42
8.1.40.0030.00617.45
8.1.30.0000.00817.64
8.1.20.0000.00717.54
8.1.10.0000.00817.59
8.1.00.0050.00217.48
8.0.300.0000.00718.77
8.0.290.0000.00716.75
8.0.280.0000.00718.55
8.0.270.0070.00017.28
8.0.260.0000.00617.17
8.0.250.0030.00317.04
8.0.240.0000.00717.00
8.0.230.0000.00716.95
8.0.220.0000.00816.93
8.0.210.0070.00016.94
8.0.200.0080.00016.93
8.0.190.0020.00516.92
8.0.180.0040.00416.84
8.0.170.0070.00016.88
8.0.160.0000.00716.93
8.0.150.0000.00716.93
8.0.140.0040.00716.81
8.0.130.0030.00313.36
8.0.120.0030.00516.92
8.0.110.0080.00016.96
8.0.100.0030.00616.93
8.0.90.0050.00217.00
8.0.80.0070.01516.95
8.0.70.0040.00416.96
8.0.60.0030.00516.83
8.0.50.0050.00316.98
8.0.30.0060.01217.17
8.0.20.0140.00517.40
8.0.10.0050.00216.98
8.0.00.0160.01416.83
7.4.330.0060.00015.00
7.4.320.0030.00316.46
7.4.300.0000.00616.48
7.4.290.0040.00416.49
7.4.280.0040.00416.57
7.4.270.0030.00316.61
7.4.260.0030.00316.60
7.4.250.0000.00716.37
7.4.240.0040.00416.46
7.4.230.0070.00016.71
7.4.220.0150.00916.64
7.4.210.0100.00716.66
7.4.200.0050.00216.70
7.4.190.0030.00316.57
7.4.160.0170.00016.63
7.4.150.0090.00917.40
7.4.140.0140.00417.86
7.4.130.0130.00516.54
7.4.120.0100.00716.54
7.4.110.0130.00616.58
7.4.100.0150.00916.39
7.4.90.0100.00716.37
7.4.80.0140.01119.39
7.4.70.0120.00616.45
7.4.60.0030.01316.57
7.4.50.0030.00616.65
7.4.40.0100.01416.60
7.4.30.0060.01116.81
7.4.00.0070.01114.84
7.3.330.0000.00513.13
7.3.320.0050.00013.12
7.3.310.0070.00016.27
7.3.300.0080.00016.24
7.3.290.0040.01416.38
7.3.280.0110.01116.33
7.3.270.0090.01517.40
7.3.260.0070.01416.42
7.3.250.0100.00816.59
7.3.240.0110.00616.39
7.3.230.0150.00516.39
7.3.210.0140.00416.35
7.3.200.0130.01019.39
7.3.190.0070.01016.37
7.3.180.0030.01716.63
7.3.170.0110.00616.79
7.3.160.0180.00016.50
7.3.120.0100.00314.86
7.3.110.0070.00714.98
7.3.100.0000.01015.09
7.3.90.0040.00414.82
7.3.80.0040.00814.65
7.3.70.0070.00414.89
7.3.60.0030.01214.67
7.3.50.0100.00714.77
7.3.40.0130.00314.92
7.3.30.0110.00414.79
7.3.20.0000.01316.81
7.3.10.0030.01016.63
7.3.00.0080.00716.67
7.2.330.0150.00316.70
7.2.320.0060.01316.73
7.2.310.0070.01016.46
7.2.300.0090.01516.79
7.2.290.0110.00716.76
7.2.240.0110.00415.03
7.2.230.0060.00615.17
7.2.220.0000.01414.92
7.2.210.0070.00715.01
7.2.200.0060.00915.03
7.2.190.0070.01015.22
7.2.180.0070.00715.13
7.2.170.0000.01414.91
7.2.160.0090.00614.95
7.2.150.0030.01016.73
7.2.140.0000.01817.08
7.2.130.0060.00616.93
7.2.120.0060.00816.93
7.2.110.0030.00916.89
7.2.100.0030.00816.92
7.2.90.0050.00617.00
7.2.80.0050.01016.96
7.2.70.0070.00816.94
7.2.60.0070.00816.67
7.2.50.0070.00716.97
7.2.40.0090.00717.02
7.2.30.0080.00816.84
7.2.20.0060.00916.62
7.2.10.0070.01116.73
7.2.00.0070.00817.78
7.1.330.0000.01015.88
7.1.320.0060.00615.83
7.1.310.0030.01015.83
7.1.300.0030.00915.70
7.1.290.0070.00715.81
7.1.280.0030.00915.88
7.1.270.0040.00715.98
7.1.260.0100.00315.75
7.1.250.0070.00515.82
7.1.200.0000.01015.92
7.1.100.0070.01018.23
7.1.70.0000.00917.21
7.1.60.0090.01519.46
7.1.50.0030.01217.05
7.1.00.0100.07022.57
7.0.200.0040.00716.60
7.0.140.0000.07321.93
7.0.60.0100.08719.94
7.0.50.0000.04717.93
7.0.40.0000.04719.96
7.0.30.0370.08020.09
7.0.20.0300.08020.19
7.0.10.0000.04719.99
7.0.00.0000.06019.99
5.6.280.0030.07721.09
5.6.210.0070.08320.47
5.6.200.0130.07718.19
5.6.190.0000.04720.57
5.6.180.0070.05020.49
5.6.170.0230.05020.46
5.6.160.0130.07720.41
5.6.150.0100.05018.18
5.6.140.0000.04318.14
5.6.130.0000.09018.15
5.6.120.0030.08020.99
5.6.110.0030.04320.98
5.6.100.0130.07720.98
5.6.90.0130.05321.10
5.6.80.0170.07320.54
5.5.350.0000.07720.38
5.5.340.0070.04317.88
5.5.330.0000.05020.23
5.5.320.0300.08020.13
5.5.310.0300.07320.50
5.5.300.0070.03717.99
5.5.290.0070.06017.92
5.5.280.0100.08020.87
5.5.270.0030.08720.80
5.5.260.0070.09020.76
5.5.250.0070.08020.71
5.5.240.0100.07020.16
5.4.450.0330.05319.59
5.4.440.0230.05019.39
5.4.430.0370.06319.38
5.4.420.0370.06719.41
5.4.410.0300.03719.28
5.4.400.0370.04719.09
5.4.390.0170.05718.93
5.4.380.0300.06719.24
5.4.370.0370.06319.06
5.4.360.0330.05719.08
5.4.350.0300.06718.79
5.4.340.0230.06018.83
5.4.320.0330.06719.22
5.4.310.0300.03719.25
5.4.300.0270.05318.92
5.4.290.0230.07018.78
5.4.280.0400.06319.23
5.4.270.0230.05719.16
5.4.260.0200.06318.89
5.4.250.0330.05319.21
5.4.240.0370.06019.08
5.4.230.0300.07019.27
5.4.220.0300.05019.21
5.4.210.0300.03719.21
5.4.200.0330.04019.12
5.4.190.0370.05019.07
5.4.180.0330.07019.06
5.4.170.0370.04018.90
5.4.160.0300.04019.23
5.4.150.0270.07019.01
5.4.140.0330.06316.36
5.4.130.0200.04316.43
5.4.120.0230.04716.32
5.4.110.0300.06016.20
5.4.100.0270.06316.45
5.4.90.0230.07316.47
5.4.80.0200.03716.41
5.4.70.0200.03716.29
5.4.60.0230.04016.22
5.4.50.0270.02716.43
5.4.40.0230.03316.45
5.4.30.0230.03316.39
5.4.20.0200.03016.20
5.4.10.0170.03316.46
5.4.00.0230.03015.73
5.3.290.0470.03314.62
5.3.280.0200.05014.44
5.3.270.0300.07314.66
5.3.260.0230.04014.45
5.3.250.0230.04314.52
5.3.240.0270.06714.49
5.3.230.0170.04314.47
5.3.220.0200.04714.42
5.3.210.0300.04714.42
5.3.200.0300.07014.52
5.3.190.0270.05314.44
5.3.180.0170.04014.45
5.3.170.0200.03314.43
5.3.160.0100.04314.52
5.3.150.0170.03314.42
5.3.140.0230.05014.59
5.3.130.0170.03714.50
5.3.120.0200.03314.41
5.3.110.0230.03314.59
5.3.100.0130.03713.99
5.3.90.0170.03714.05
5.3.80.0170.04014.07
5.3.70.0200.03313.99
5.3.60.0100.04013.87
5.3.50.0170.04013.75
5.3.40.0170.03714.05
5.3.30.0200.03313.87
5.3.20.0130.03713.63
5.3.10.0130.04013.61
5.3.00.0130.04313.46
5.2.170.0130.03312.07
5.2.160.0130.02712.07
5.2.150.0200.02312.07
5.2.140.0130.03012.07
5.2.130.0100.03012.07
5.2.120.0130.03012.07
5.2.110.0100.03012.07
5.2.100.0170.03312.07
5.2.90.0100.03012.07
5.2.80.0230.02712.07
5.2.70.0170.03012.07
5.2.60.0130.03012.07
5.2.50.0170.02712.07
5.2.40.0130.02312.07
5.2.30.0130.02312.07
5.2.20.0130.02712.07
5.2.10.0170.02712.07
5.2.00.0100.02712.07
5.1.60.0070.02712.07
5.1.50.0130.02312.07
5.1.40.0170.02012.07
5.1.30.0070.02712.07
5.1.20.0100.02312.07
5.1.10.0130.02712.07
5.1.00.0130.05012.07
5.0.50.0030.05012.07
5.0.40.0130.04012.07
5.0.30.0170.04312.07
5.0.20.0130.04312.07
5.0.10.0100.02712.07
5.0.00.0100.06012.07
4.4.90.0070.01312.07
4.4.80.0100.01012.07
4.4.70.0070.01712.07
4.4.60.0030.01312.07
4.4.50.0030.02012.07
4.4.40.0030.02312.07
4.4.30.0100.01012.07
4.4.20.0070.01312.07
4.4.10.0100.03312.07
4.4.00.0070.03312.07
4.3.110.0100.03312.07
4.3.100.0100.03712.07
4.3.90.0100.01712.07
4.3.80.0100.05012.07
4.3.70.0130.03312.07
4.3.60.0130.03312.07
4.3.50.0100.03312.07
4.3.40.0130.05012.07
4.3.30.0100.03012.07
4.3.20.0030.04012.07
4.3.10.0070.03312.07
4.3.00.0030.03312.07

preferences:
57.94 ms | 401 KiB | 5 Q