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)){ if(strstr($k,'up_') !== false){ $queryIn .= ' '.substr($k, 3, strlen($k)).'='.$value; $control++; } } } } if($control == 0){ $error = "No hay cambios que plasmar"; } var_dump($row); echo $queryIn." ".$control." ".$ladoB;

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.88
8.3.50.0090.00921.95
8.3.40.0060.00918.77
8.3.30.0120.00318.79
8.3.20.0050.00320.13
8.3.10.0000.00823.61
8.3.00.0040.00420.80
8.2.180.0140.00418.56
8.2.170.0150.00022.96
8.2.160.0090.00620.39
8.2.150.0040.00424.18
8.2.140.0090.00024.66
8.2.130.0000.00826.16
8.2.120.0080.00020.83
8.2.110.0000.00919.45
8.2.100.0120.00018.03
8.2.90.0040.00419.05
8.2.80.0000.00817.97
8.2.70.0030.00617.63
8.2.60.0050.00317.77
8.2.50.0080.00018.07
8.2.40.0000.00819.82
8.2.30.0040.00418.13
8.2.20.0040.00417.63
8.2.10.0000.00818.00
8.2.00.0000.00817.87
8.1.280.0100.01325.92
8.1.270.0060.00323.73
8.1.260.0030.00626.35
8.1.250.0040.00428.09
8.1.240.0060.00321.34
8.1.230.0080.00417.45
8.1.220.0080.00017.79
8.1.210.0080.00018.77
8.1.200.0040.00417.35
8.1.190.0000.00817.23
8.1.180.0050.00318.10
8.1.170.0040.00418.36
8.1.160.0000.00722.01
8.1.150.0080.00018.62
8.1.140.0050.00217.35
8.1.130.0000.00717.83
8.1.120.0000.00717.42
8.1.110.0050.00317.35
8.1.100.0040.00417.48
8.1.90.0000.00717.41
8.1.80.0040.00417.35
8.1.70.0030.00317.38
8.1.60.0060.00317.47
8.1.50.0020.00517.55
8.1.40.0000.00817.45
8.1.30.0050.00317.59
8.1.20.0000.00917.60
8.1.10.0030.00517.48
8.1.00.0040.00417.42
8.0.300.0040.00418.77
8.0.290.0070.00016.75
8.0.280.0000.00718.38
8.0.270.0000.00717.25
8.0.260.0030.00317.17
8.0.250.0000.00717.02
8.0.240.0000.00717.02
8.0.230.0040.00416.92
8.0.220.0000.00716.93
8.0.210.0060.00316.86
8.0.200.0040.00416.90
8.0.190.0040.00417.08
8.0.180.0030.00617.01
8.0.170.0040.00416.98
8.0.160.0040.00416.95
8.0.150.0000.00816.97
8.0.140.0000.01116.82
8.0.130.0000.00513.32
8.0.120.0000.00816.89
8.0.110.0050.00217.02
8.0.100.0050.00216.91
8.0.90.0030.00516.98
8.0.80.0130.01016.99
8.0.70.0000.00716.83
8.0.60.0020.00516.86
8.0.50.0040.00416.84
8.0.30.0130.00717.09
8.0.20.0140.00717.40
8.0.10.0000.00717.00
8.0.00.0120.00616.85
7.4.330.0020.00215.12
7.4.320.0040.00416.61
7.4.300.0060.00016.54
7.4.290.0070.00016.42
7.4.280.0040.00416.64
7.4.270.0000.00716.60
7.4.260.0100.00016.49
7.4.250.0050.00316.58
7.4.240.0060.00216.62
7.4.230.0030.00316.33
7.4.220.0110.00716.52
7.4.210.0100.00816.56
7.4.200.0050.00216.42
7.4.190.0030.00316.31
7.4.160.0090.00616.37
7.4.150.0080.01117.40
7.4.140.0120.00917.86
7.4.130.0150.00916.54
7.4.120.0090.00916.51
7.4.110.0090.00916.49
7.4.100.0040.01516.50
7.4.90.0090.00916.55
7.4.80.0170.01019.39
7.4.70.0030.01316.73
7.4.60.0060.01216.66
7.4.50.0000.00416.67
7.4.40.0110.00716.51
7.4.30.0070.01016.41
7.4.00.0030.01114.94
7.3.330.0060.00013.17
7.3.320.0060.00013.16
7.3.310.0030.00316.29
7.3.300.0030.00316.36
7.3.290.0170.00016.33
7.3.280.0080.01416.31
7.3.270.0140.01017.40
7.3.260.0130.01016.43
7.3.250.0070.01116.48
7.3.240.0110.00716.34
7.3.230.0090.00916.42
7.3.210.0110.01116.68
7.3.200.0130.00619.39
7.3.190.0120.00616.54
7.3.180.0160.00016.39
7.3.170.0000.01616.67
7.3.160.0030.01316.45
7.3.120.0000.01514.88
7.3.10.0060.00616.62
7.3.00.0070.00416.33
7.2.330.0030.01516.84
7.2.320.0060.01216.66
7.2.310.0140.00316.41
7.2.300.0080.00816.53
7.2.290.0110.01216.51
7.2.130.0040.00816.64
7.2.120.0080.00816.68
7.2.110.0060.00616.80
7.2.100.0020.00916.81
7.2.90.0080.00616.62
7.2.80.0090.00616.77
7.2.70.0080.00816.76
7.2.60.0090.00416.84
7.2.50.0050.00816.79
7.2.40.0030.01316.71
7.2.30.0050.00816.72
7.2.20.0060.00817.02
7.2.10.0020.01316.83
7.2.00.0110.00317.72
7.1.250.0080.00415.62
7.1.100.0120.00618.13
7.1.70.0050.00217.13
7.1.60.0040.01519.46
7.1.50.0030.00716.74
7.1.00.0100.07022.30
7.0.200.0070.00416.83
7.0.140.0100.06721.92
7.0.60.0100.06719.93
7.0.50.0170.06717.83
7.0.40.0130.08320.20
7.0.30.2330.04320.17
7.0.20.0300.04020.00
7.0.10.0100.06020.29
7.0.00.0070.05020.01
5.6.280.0130.06321.11
5.6.210.0000.09020.54
5.6.200.0030.05718.12
5.6.190.0030.05720.29
5.6.180.0370.07320.50
5.6.170.0170.05020.41
5.6.160.0130.08020.44
5.6.150.0070.03718.23
5.6.140.0030.04318.11
5.6.130.0130.04318.19
5.6.120.0030.06020.98
5.6.110.0100.06320.98
5.6.100.0070.08020.98
5.6.90.0100.08321.09
5.6.80.0130.08320.40
5.5.350.0300.07720.32
5.5.340.0130.07318.01
5.5.330.0070.05320.20
5.5.320.0200.08720.32
5.5.310.0370.06020.49
5.5.300.0030.08017.91
5.5.290.0030.04017.95
5.5.280.0130.06720.85
5.5.270.0100.04020.64
5.5.260.0170.05720.68
5.5.250.0070.08020.69
5.5.240.0130.03320.12
5.4.450.0630.06319.52
5.4.440.0830.05319.58
5.4.430.0930.06319.27
5.4.420.1200.06719.48
5.4.410.0900.06019.32
5.4.400.0870.05319.19
5.4.390.0630.05719.28
5.4.380.0470.05718.50
5.4.370.0100.05318.68
5.4.360.0170.04018.68
5.4.350.0100.05018.68
5.4.340.0130.04318.64
5.4.320.0040.04012.46
5.4.310.0050.03812.46
5.4.300.0070.03512.46
5.4.290.0090.04812.45
5.4.280.0090.04712.35
5.4.270.0060.04712.35
5.4.260.0140.07212.35
5.4.250.0070.05512.35
5.4.240.0070.04212.36
5.4.230.0090.04912.34
5.4.220.0170.06912.35
5.4.210.0070.04212.35
5.4.200.0100.04012.34
5.4.190.0100.04112.34
5.4.180.0100.04612.34
5.4.170.0070.05412.35
5.4.160.0080.04112.35
5.4.150.0070.05012.34
5.4.140.0090.03912.03
5.4.130.0100.03512.02
5.4.120.0050.04211.98
5.4.110.0060.04111.97
5.4.100.0080.05011.97
5.4.90.0100.05911.97
5.4.80.0110.05111.97
5.4.70.0060.04511.97
5.4.60.0130.03111.96
5.4.50.0110.03811.97
5.4.40.0110.04411.95
5.4.30.0070.03911.96
5.4.20.0050.04011.96
5.4.10.0140.03111.95
5.4.00.0050.04311.45
5.3.290.0090.03712.80
5.3.280.0080.04012.71
5.3.270.0080.04312.72
5.3.260.0110.05412.72
5.3.250.0080.05412.72
5.3.240.0100.05312.72
5.3.230.0090.05012.71
5.3.220.0080.05112.68
5.3.210.0060.04612.68
5.3.200.0110.04512.68
5.3.190.0080.04312.68
5.3.180.0100.04212.68
5.3.170.0050.05412.67
5.3.160.0120.04312.67
5.3.150.0050.04512.67
5.3.140.0070.04012.66
5.3.130.0080.05112.66
5.3.120.0130.05512.66
5.3.110.0070.04312.66
5.3.100.0060.04012.12
5.3.90.0140.04312.08
5.3.80.0090.04812.08
5.3.70.0070.04112.08
5.3.60.0090.04712.06
5.3.50.0100.03712.00
5.3.40.0060.04112.00
5.3.30.0120.03311.96
5.3.20.0060.04511.73
5.3.10.0080.04111.70
5.3.00.0030.04411.69
5.2.170.0050.0399.19
5.2.160.0080.0499.18
5.2.150.0070.0439.18
5.2.140.0110.0499.18
5.2.130.0080.0539.14
5.2.120.0060.0619.14
5.2.110.0080.0609.15
5.2.100.0060.0439.14
5.2.90.0130.0579.14
5.2.80.0070.0479.14
5.2.70.0070.0509.14
5.2.60.0080.0399.09
5.2.50.0070.0459.07
5.2.40.0080.0339.04
5.2.30.0230.1079.02
5.2.20.0130.0749.00
5.2.10.0030.0328.95
5.2.00.0100.0508.80
5.1.60.0050.0378.07
5.1.50.0100.0478.07
5.1.40.0140.0578.05
5.1.30.0040.0628.40
5.1.20.0060.0318.43
5.1.10.0050.0388.16
5.1.00.0070.0428.16
5.0.50.0050.0296.63
5.0.40.0130.0386.50
5.0.30.0070.0456.31
5.0.20.0060.0246.28
5.0.10.0040.0296.26
5.0.00.0040.0406.25
4.4.90.0050.0214.78
4.4.80.0060.0474.76
4.4.70.0080.0334.75
4.4.60.0040.0224.76
4.4.50.0020.0224.77
4.4.40.0010.0304.71
4.4.30.0050.0174.76
4.4.20.0070.0484.84
4.4.10.0050.0404.85
4.4.00.0030.0364.76
4.3.110.0070.0274.67
4.3.100.0050.0234.66
4.3.90.0030.0214.63
4.3.80.0060.0244.58
4.3.70.0020.0164.63
4.3.60.0030.0224.63
4.3.50.0020.0204.63
4.3.40.0070.0284.54
4.3.30.0040.0153.30
4.3.20.0060.0133.27
4.3.10.0030.0163.24
4.3.00.0130.0206.92

preferences:
43.7 ms | 401 KiB | 5 Q