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": "Hey", "up_persona_curso": "idio", "up_persona_email": "", "up_persona_freg": "", "up_persona_id": "", "up_persona_nombre": ""}'; $row = json_decode($row, true); $queryIn = '';$control = 0; foreach($row as $k => $value){ if(strstr($k,'-maxwidth') === false && strstr($k,'itemSelected') === false){ if(!empty($value)){ if(strstr($k,'up_') !== false){ $control++; if($control>1){ $queryIn .= ','; } $queryIn .= ' '.substr($k, 3, strlen($k)).'=\''.$value.'\''; } } } } if($control == 0){ $error = "No hay cambios que plasmar"; }/*else if($control<1){ $queryIn = substr($queryIn, 0, strlen($queryIn)-1); }*/ var_dump($row); echo $queryIn." ".$control;

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.40.0000.01518.84
8.3.30.0050.01419.05
8.3.20.0040.00420.21
8.3.10.0080.00023.78
8.3.00.0000.00819.18
8.2.170.0120.00322.96
8.2.160.0030.01020.52
8.2.150.0040.00424.18
8.2.140.0050.00324.66
8.2.130.0090.00026.16
8.2.120.0080.00020.82
8.2.110.0060.00322.25
8.2.100.0030.01017.91
8.2.90.0050.00319.17
8.2.80.0090.00017.97
8.2.70.0060.00317.63
8.2.60.0050.00318.16
8.2.50.0080.00018.07
8.2.40.0040.00420.02
8.2.30.0070.00018.23
8.2.20.0000.00817.75
8.2.10.0000.00718.15
8.2.00.0000.00717.76
8.1.270.0040.00423.91
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0030.00721.91
8.1.230.0040.00819.09
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0060.00317.13
8.1.190.0000.00817.35
8.1.180.0030.00518.10
8.1.170.0060.00318.54
8.1.160.0040.00422.02
8.1.150.0040.00418.69
8.1.140.0080.00017.28
8.1.130.0040.00417.71
8.1.120.0040.00417.36
8.1.110.0020.00517.32
8.1.100.0000.00717.47
8.1.90.0040.00417.38
8.1.80.0040.00417.38
8.1.70.0030.00317.34
8.1.60.0030.00617.58
8.1.50.0040.00417.57
8.1.40.0040.00417.50
8.1.30.0030.00517.57
8.1.20.0040.00417.61
8.1.10.0050.00517.57
8.1.00.0040.00417.45
8.0.300.0000.00718.77
8.0.290.0040.00417.30
8.0.280.0030.00318.41
8.0.270.0070.00017.33
8.0.260.0090.00017.27
8.0.250.0000.00716.91
8.0.240.0040.00416.88
8.0.230.0030.00316.91
8.0.220.0030.00516.90
8.0.210.0000.00716.86
8.0.200.0040.00417.01
8.0.190.0040.00416.82
8.0.180.0000.00716.92
8.0.170.0040.00416.82
8.0.160.0000.00716.89
8.0.150.0050.00216.88
8.0.140.0030.00816.87
8.0.130.0000.00513.38
8.0.120.0050.00316.76
8.0.110.0040.00416.88
8.0.100.0030.00616.83
8.0.90.0040.00416.75
8.0.80.0090.00616.91
8.0.70.0040.00416.97
8.0.60.0040.00416.95
8.0.50.0040.00416.73
8.0.30.0150.01117.29
8.0.20.0100.01017.40
8.0.10.0000.00817.13
8.0.00.0040.01316.82
7.4.330.0000.00515.16
7.4.320.0000.00616.60
7.4.300.0030.00616.53
7.4.290.0000.00716.46
7.4.280.0040.00416.54
7.4.270.0070.00016.63
7.4.260.0030.00716.54
7.4.250.0040.00416.39
7.4.240.0060.00216.52
7.4.230.0040.00416.62
7.4.220.0090.00616.48
7.4.210.0040.00916.56
7.4.200.0080.00016.37
7.4.190.0070.00016.68
7.4.160.0180.00516.47
7.4.150.0060.01217.40
7.4.140.0100.00817.86
7.4.130.0090.00916.55
7.4.120.0160.00416.56
7.4.110.0110.00716.66
7.4.100.0090.01516.38
7.4.90.0070.01116.45
7.4.80.0100.01019.39
7.4.70.0070.01116.46
7.4.60.0150.00616.62
7.4.50.0030.00316.58
7.4.40.0090.00916.58
7.4.30.0180.00316.66
7.4.00.0110.00414.83
7.3.330.0030.00313.27
7.3.320.0050.00013.22
7.3.310.0040.00416.40
7.3.300.0030.00316.31
7.3.290.0090.00916.29
7.3.280.0130.00516.34
7.3.270.0090.00917.40
7.3.260.0150.01216.56
7.3.250.0130.00416.44
7.3.240.0180.00016.43
7.3.230.0060.01216.53
7.3.210.0030.01916.52
7.3.200.0040.01319.39
7.3.190.0030.01416.32
7.3.180.0090.00616.60
7.3.170.0170.00016.27
7.3.160.0150.00616.41
7.3.120.0040.01114.95
7.3.00.0000.01216.36
7.2.330.0060.01216.85
7.2.320.0090.00916.47
7.2.310.0100.00716.47
7.2.300.0110.00716.75
7.2.290.0130.00616.75
7.2.130.0030.01017.07
7.2.120.0130.00316.76
7.2.110.0000.01316.76
7.2.100.0100.00316.58
7.2.90.0070.00716.83
7.2.80.0060.00616.94
7.2.70.0110.00316.89
7.2.60.0090.00616.92
7.2.50.0050.01017.01
7.2.40.0070.00716.75
7.2.30.0100.00616.78
7.2.20.0030.00916.99
7.2.10.0140.00316.87
7.2.00.0070.01016.86
7.1.250.0030.00715.75
7.1.240.0040.00715.69
7.1.230.0100.00315.72
7.1.220.0130.00015.31
7.1.210.0100.00615.73
7.1.200.0080.00615.76
7.1.190.0050.00515.77
7.1.180.0030.00615.69
7.1.170.0040.00715.78
7.1.160.0060.00615.87
7.1.150.0070.00715.92
7.1.140.0030.01215.80
7.1.130.0090.00315.68
7.1.120.0110.00415.65
7.1.110.0000.01015.84
7.1.100.0040.01015.84
7.1.90.0030.00715.63
7.1.80.0030.00715.77
7.1.70.0050.00516.38
7.1.60.0070.01217.56
7.1.50.0030.00816.25
7.1.40.0050.00515.71
7.1.30.0030.00715.82
7.1.20.0090.00015.75
7.1.10.0030.01015.83
7.1.00.0040.03819.03
7.0.330.0030.00715.10
7.0.320.0060.00315.08
7.0.310.0060.00715.38
7.0.300.0030.00715.05
7.0.290.0000.00815.32
7.0.280.0040.00815.29
7.0.270.0090.00315.44
7.0.260.0070.00415.28
7.0.250.0060.00615.20
7.0.240.0060.00615.14
7.0.230.0000.00815.08
7.0.220.0070.00415.32
7.0.210.0030.00715.23
7.0.200.0070.00715.91
7.0.190.0080.00015.28
7.0.180.0040.00715.38
7.0.170.0060.00615.37
7.0.160.0080.00415.15
7.0.150.0000.01215.54
7.0.140.0030.03818.84
7.0.130.0030.00915.41
7.0.120.0000.01515.34
7.0.110.0040.01115.42
7.0.100.0160.03517.60
7.0.90.0180.04017.49
7.0.80.0050.02717.64
7.0.70.0140.04317.58
7.0.60.0080.03517.71
7.0.50.0050.03817.72
7.0.40.0070.04216.68
7.0.30.0030.04616.89
7.0.20.0050.03316.78
7.0.10.0070.02816.76
7.0.00.0050.04416.74
5.6.380.0100.00314.02
5.6.370.0100.00314.09
5.6.360.0070.00714.41
5.6.350.0030.00914.21
5.6.340.0030.00714.44
5.6.330.0030.00614.47
5.6.320.0000.01013.96
5.6.310.0070.00714.36
5.6.300.0030.00714.46
5.6.290.0040.00714.67
5.6.280.0050.03917.65
5.6.270.0070.00714.39
5.6.260.0060.00614.43
5.6.250.0100.04017.46
5.6.240.0050.03017.46
5.6.230.0050.03517.44
5.6.220.0080.04017.49
5.6.210.0080.02717.58
5.6.200.0100.04517.77
5.6.190.0130.03817.64
5.6.180.0080.03517.72
5.6.170.0120.03317.63
5.6.160.0050.02917.71
5.6.150.0040.04117.63
5.6.140.0050.04217.73
5.6.130.0050.03717.68
5.6.120.0090.03917.67
5.6.110.0090.03717.67
5.6.100.0100.03117.68
5.6.90.0100.04017.77
5.6.80.0040.04617.43
5.6.70.0040.03617.21
5.6.60.0010.02917.36
5.6.50.0050.02617.20
5.6.40.0030.02717.33
5.6.30.0020.03217.47
5.6.20.0020.02517.30
5.6.10.0040.02217.35
5.6.00.0080.01817.29
5.5.380.0030.03015.86
5.5.370.0120.03815.62
5.5.360.0090.03515.88
5.5.350.0070.02615.75
5.5.340.0000.03716.00
5.5.330.0050.03415.95
5.5.320.0100.03715.92
5.5.310.0070.04015.96
5.5.300.0040.02416.06
5.5.290.0100.03916.08
5.5.280.0020.03016.10
5.5.270.0080.03815.77
5.5.260.0050.03516.07
5.5.250.0020.02815.81
5.5.240.0030.03315.73
5.5.230.0050.02515.61
5.5.220.0110.01815.53
5.5.210.0030.03315.59
5.5.200.0020.04415.53
5.5.190.0110.03015.56
5.5.180.0020.02915.41
5.5.170.0000.01211.05
5.5.160.0070.04215.63
5.5.150.0050.02415.55
5.5.140.0060.03715.53
5.5.130.0080.01815.61
5.5.120.0070.02315.73
5.5.110.0130.01715.69
5.5.100.0080.02215.67
5.5.90.0080.03515.54
5.5.80.0080.03315.54
5.5.70.0050.02715.54
5.5.60.0050.02615.43
5.5.50.0120.03515.54
5.5.40.0020.02515.59
5.5.30.0060.02115.63
5.5.20.0070.03815.61
5.5.10.0090.02515.58
5.5.00.0050.02315.52
5.4.450.0110.02015.26
5.4.440.0050.04515.25
5.4.430.0100.01815.31
5.4.420.0070.03815.37
5.4.410.0050.04114.97
5.4.400.0060.02114.95
5.4.390.0120.03615.07
5.4.380.0020.02415.00
5.4.370.0040.02415.09
5.4.360.0020.02815.09
5.4.350.0100.03015.01
5.4.340.0060.02114.97
5.4.330.0060.00610.66
5.4.320.0030.02814.83
5.4.310.0070.03514.94
5.4.300.0040.02514.95
5.4.290.0030.03314.89
5.4.280.0050.03215.11
5.4.270.0060.03314.90
5.4.260.0050.03214.89
5.4.250.0130.03314.85
5.4.240.0000.03114.95
5.4.230.0020.02814.79
5.4.220.0080.02315.05
5.4.210.0050.03314.92
5.4.200.0060.03814.87
5.4.190.0090.03515.01
5.4.180.0080.03114.84
5.4.170.0050.02114.66
5.4.160.0080.01915.12
5.4.150.0080.02014.83
5.4.140.0030.02313.69
5.4.130.0050.01613.68
5.4.120.0070.02213.70
5.4.110.0030.01813.85
5.4.100.0070.02113.62
5.4.90.0040.01813.74
5.4.80.0040.01913.76
5.4.70.0020.01913.48
5.4.60.0030.01813.73
5.4.50.0000.02113.67
5.4.40.0020.02513.79
5.4.30.0040.01913.74
5.4.20.0030.02013.63
5.4.10.0050.01813.48
5.4.00.0050.02113.14
5.3.290.0050.02312.67
5.3.280.0080.03112.53
5.3.270.0040.02212.51
5.3.260.0050.02012.56
5.3.250.0070.01712.39
5.3.240.0080.01512.49
5.3.230.0070.02012.53
5.3.220.0090.01512.49
5.3.210.0030.02212.37
5.3.200.0050.02212.36
5.3.190.0030.02212.52
5.3.180.0000.02312.54
5.3.170.0050.01812.52
5.3.160.0020.02212.58
5.3.150.0020.02412.57
5.3.140.0040.01812.45
5.3.130.0010.01812.58
5.3.120.0030.02012.50
5.3.110.0030.02112.51
5.3.100.0070.01912.17
5.3.90.0040.01912.25
5.3.80.0080.01712.10
5.3.70.0030.02012.21
5.3.60.0050.01712.26
5.3.50.0020.02512.02
5.3.40.0110.01312.16
5.3.30.0050.01812.16
5.3.20.0040.01711.95
5.3.10.0040.01811.86
5.3.00.0020.02011.93
5.2.170.0030.01610.54
5.2.160.0000.01610.54
5.2.150.0020.01810.47
5.2.140.0040.01510.57
5.2.130.0030.01310.52
5.2.120.0030.01310.44
5.2.110.0000.02010.42
5.2.100.0030.01510.52
5.2.90.0050.01310.42
5.2.80.0030.01910.44
5.2.70.0000.01810.56
5.2.60.0020.01810.42
5.2.50.0050.01510.50
5.2.40.0060.01210.46
5.2.30.0020.01710.36
5.2.20.0060.01310.49
5.2.10.0000.01710.33
5.2.00.0010.01810.32
5.1.60.0040.01210.00
5.1.50.0020.0159.97
5.1.40.0030.0129.99
5.1.30.0020.01510.17
5.1.20.0030.01110.16
5.1.10.0030.0119.95
5.1.00.0020.01310.00
5.0.50.0020.0129.31
5.0.40.0000.0119.31
5.0.30.0020.0169.31
5.0.20.0040.0089.31
5.0.10.0000.0129.31
5.0.00.0050.0139.31
4.4.90.0030.0119.31
4.4.80.0010.0089.31
4.4.70.0020.0079.31
4.4.60.0020.0079.31
4.4.50.0050.0069.31
4.4.40.0020.0189.31
4.4.30.0000.0119.31
4.4.20.0000.0099.31
4.4.10.0010.0089.31
4.4.00.0000.0149.31
4.3.110.0030.0069.31
4.3.100.0020.0099.31
4.3.90.0000.0099.31
4.3.80.0010.0149.31
4.3.70.0000.0109.31
4.3.60.0030.0089.31
4.3.50.0030.0079.31
4.3.40.0000.0279.31
4.3.30.0060.0079.31
4.3.20.0000.0109.31
4.3.10.0000.0109.31
4.3.00.0010.0109.31

preferences:
38.91 ms | 400 KiB | 5 Q