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." ".$ladoA." ".$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.75
8.3.50.0090.00721.95
8.3.40.0030.01318.84
8.3.30.0120.00319.22
8.3.20.0050.00320.29
8.3.10.0050.00323.54
8.3.00.0050.00320.89
8.2.180.0060.00918.02
8.2.170.0090.01222.96
8.2.160.0070.00720.38
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0070.00026.16
8.2.120.0000.00920.91
8.2.110.0070.00320.70
8.2.100.0040.00818.05
8.2.90.0050.00518.95
8.2.80.0040.00417.97
8.2.70.0080.00017.75
8.2.60.0030.00517.93
8.2.50.0000.00818.07
8.2.40.0000.00819.80
8.2.30.0040.00418.31
8.2.20.0090.00019.54
8.2.10.0040.00418.01
8.2.00.0060.00317.78
8.1.280.0120.00925.92
8.1.270.0090.00023.91
8.1.260.0080.00026.35
8.1.250.0080.00028.09
8.1.240.0030.00722.20
8.1.230.0060.00617.65
8.1.220.0000.00817.74
8.1.210.0050.00318.77
8.1.200.0030.00617.35
8.1.190.0030.00517.00
8.1.180.0000.00818.10
8.1.170.0060.00318.50
8.1.160.0040.00422.02
8.1.150.0040.00418.71
8.1.140.0040.00417.48
8.1.130.0070.00017.82
8.1.120.0000.00717.30
8.1.110.0030.00517.38
8.1.100.0040.00417.44
8.1.90.0080.00017.50
8.1.80.0040.00417.50
8.1.70.0000.00817.41
8.1.60.0090.00017.64
8.1.50.0040.00417.55
8.1.40.0040.00417.52
8.1.30.0050.00317.56
8.1.20.0050.00317.65
8.1.10.0040.00417.45
8.1.00.0080.00017.47
8.0.300.0040.00418.77
8.0.290.0000.00717.16
8.0.280.0040.00418.53
8.0.270.0040.00417.28
8.0.260.0000.00717.17
8.0.250.0000.00817.04
8.0.240.0030.00316.97
8.0.230.0000.00716.93
8.0.220.0000.00816.90
8.0.210.0030.00316.89
8.0.200.0050.00216.85
8.0.190.0050.00316.97
8.0.180.0080.00016.76
8.0.170.0000.00716.98
8.0.160.0000.00816.95
8.0.150.0030.00516.86
8.0.140.0040.00716.83
8.0.130.0060.00013.27
8.0.120.0030.00516.88
8.0.110.0040.00416.78
8.0.100.0000.00816.84
8.0.90.0050.00216.84
8.0.80.0070.01016.87
8.0.70.0000.00716.96
8.0.60.0000.00716.97
8.0.50.0040.00416.81
8.0.30.0100.00816.75
8.0.20.0130.01117.40
8.0.10.0070.00017.02
8.0.00.0090.01216.83
7.4.330.0000.00515.15
7.4.320.0000.00616.55
7.4.300.0000.00716.62
7.4.290.0030.00316.52
7.4.280.0080.00016.61
7.4.270.0000.00716.62
7.4.260.0080.00316.61
7.4.250.0050.00216.62
7.4.240.0030.00316.55
7.4.230.0070.00016.69
7.4.220.0130.01016.54
7.4.210.0060.01116.53
7.4.200.0040.00416.64
7.4.190.0040.00416.65
7.4.160.0030.01316.50
7.4.150.0060.01217.40
7.4.140.0090.00817.86
7.4.130.0090.01016.41
7.4.120.0060.01216.49
7.4.110.0090.01416.39
7.4.100.0060.01216.41
7.4.90.0080.01116.50
7.4.80.0100.01319.39
7.4.70.0100.00816.47
7.4.60.0100.00716.29
7.4.50.0090.00016.58
7.4.40.0140.00316.45
7.4.30.0030.01316.58
7.4.00.0060.00814.90
7.3.330.0050.00013.15
7.3.320.0050.00013.13
7.3.310.0070.00016.10
7.3.300.0000.00816.26
7.3.290.0080.00816.30
7.3.280.0110.00516.29
7.3.270.0100.01317.40
7.3.260.0110.01616.61
7.3.250.0130.00516.42
7.3.240.0030.01616.36
7.3.230.0030.01316.60
7.3.210.0090.00916.50
7.3.200.0110.00819.39
7.3.190.0100.00716.60
7.3.180.0040.01216.50
7.3.170.0120.00316.43
7.3.160.0120.00616.24
7.3.120.0110.00514.59
7.3.110.0110.00714.66
7.3.100.0030.01415.02
7.3.90.0000.01414.98
7.3.80.0100.00714.70
7.3.70.0070.00314.71
7.3.60.0000.01414.59
7.3.50.0040.00814.73
7.3.40.0060.00614.53
7.3.30.0090.00614.49
7.3.20.0030.00916.38
7.3.10.0040.00916.43
7.3.00.0020.01116.64
7.2.330.0130.00616.64
7.2.320.0030.01516.70
7.2.310.0070.01016.84
7.2.300.0050.01416.71
7.2.290.0130.01016.52
7.2.250.0030.01315.27
7.2.240.0030.01815.27
7.2.230.0120.00015.19
7.2.220.0110.00714.73
7.2.210.0100.00315.09
7.2.200.0100.00315.29
7.2.190.0060.00915.09
7.2.180.0000.00915.17
7.2.170.0060.00914.82
7.2.130.0030.00916.68
7.2.120.0090.00616.95
7.2.110.0070.00716.73
7.2.100.0040.01116.70
7.2.90.0050.00616.32
7.2.80.0200.00316.46
7.2.70.0110.00716.86
7.2.60.0080.00916.86
7.2.50.0040.01116.72
7.2.40.0060.01216.66
7.2.30.0180.00617.03
7.2.20.0140.00016.61
7.2.10.0100.00716.76
7.2.00.0030.01118.08
7.1.330.0100.00315.90
7.1.320.0060.00615.78
7.1.310.0050.00515.94
7.1.300.0040.00815.77
7.1.290.0070.00715.92
7.1.280.0000.01515.78
7.1.270.0030.00915.99
7.1.260.0030.01215.83
7.1.250.0040.00415.35
7.1.200.0060.00615.85
7.1.70.0030.00517.21
7.1.60.0030.01016.93
7.1.50.0080.00416.94
7.1.00.0130.06722.54
7.0.200.0070.01016.83
7.0.140.0030.07022.09
7.0.60.0100.03720.04
7.0.50.0070.04717.90
7.0.40.0100.03720.24
7.0.30.0270.05720.09
7.0.20.0300.08320.00
7.0.10.0030.04320.04
7.0.00.0170.07320.01
5.6.280.0000.07721.12
5.6.210.0070.08020.54
5.6.200.0070.07718.18
5.6.190.0030.08720.56
5.6.180.0070.07020.61
5.6.170.0200.03720.54
5.6.160.0100.08720.49
5.6.150.0070.07718.20
5.6.140.0030.04318.20
5.6.130.0100.08318.18
5.6.120.0170.07321.01
5.6.110.0070.07721.04
5.6.100.0130.07720.97
5.6.90.0030.09021.00
5.6.80.0070.06020.43
5.5.350.0000.08720.32
5.5.340.0130.04317.96
5.5.330.0000.05020.43
5.5.320.0270.05020.24
5.5.310.0330.07320.23
5.5.300.0030.04017.95
5.5.290.0030.08317.98
5.5.280.0130.06720.87
5.5.270.0000.08020.86
5.5.260.0200.06320.82
5.5.250.0070.05720.61
5.5.240.0070.07020.16
5.4.450.0600.06019.45
5.4.440.0630.06019.63
5.4.430.0770.05319.49
5.4.420.0570.06319.47
5.4.410.0070.06019.11
5.4.400.0100.06719.20
5.4.390.0630.06019.13
5.4.380.0370.05318.77
5.4.370.0500.06318.61
5.4.360.0300.05318.57
5.4.350.0500.03718.57
5.4.340.0200.05318.47
5.4.320.0040.03812.46
5.4.310.0070.05012.45
5.4.300.0110.03012.46
5.4.290.0070.03912.45
5.4.280.0070.03812.35
5.4.270.0060.03812.35
5.4.260.0080.04412.36
5.4.250.0060.04212.36
5.4.240.0090.03612.35
5.4.230.0070.03912.35
5.4.220.0070.03612.35
5.4.210.0100.03612.35
5.4.200.0090.04612.34
5.4.190.0050.04912.34
5.4.180.0110.04512.34
5.4.170.0050.04212.36
5.4.160.0070.04012.35
5.4.150.0080.04112.35
5.4.140.0080.04312.03
5.4.130.0120.04412.02
5.4.120.0050.03611.98
5.4.110.0050.03711.98
5.4.100.0070.03411.97
5.4.90.0070.03611.98
5.4.80.0060.03711.97
5.4.70.0100.03111.96
5.4.60.0070.03411.97
5.4.50.0030.03811.97
5.4.40.0070.03511.95
5.4.30.0070.03611.96
5.4.20.0070.03611.95
5.4.10.0060.03611.95
5.4.00.0060.04211.45
5.3.290.0100.04112.80
5.3.280.0070.03712.71
5.3.270.0060.04112.72
5.3.260.0060.04112.71
5.3.250.0140.04612.72
5.3.240.0050.05212.72
5.3.230.0080.04312.71
5.3.220.0060.04312.68
5.3.210.0060.04312.68
5.3.200.0070.03812.68
5.3.190.0080.04012.68
5.3.180.0080.05512.67
5.3.170.0120.03912.66
5.3.160.0090.03712.67
5.3.150.0050.05012.68
5.3.140.0080.04712.66
5.3.130.0090.05212.66
5.3.120.0100.05112.66
5.3.110.0110.05412.66
5.3.100.0130.05112.12
5.3.90.0070.06012.08
5.3.80.0060.05112.07
5.3.70.0110.05212.07
5.3.60.0100.05312.06
5.3.50.0080.05512.00
5.3.40.0110.06812.00
5.3.30.0070.05811.96
5.3.20.0090.04811.73
5.3.10.0050.04911.70
5.3.00.0060.05311.69
5.2.170.0060.0479.19
5.2.160.0090.0439.19
5.2.150.0120.0619.18
5.2.140.0070.0439.18
5.2.130.0080.0439.14
5.2.120.0050.0419.14
5.2.110.0090.0449.15
5.2.100.0090.0419.14
5.2.90.0050.0349.14
5.2.80.0070.0299.14
5.2.70.0070.0369.14
5.2.60.0060.0429.10
5.2.50.0070.0309.07
5.2.40.0080.0389.04
5.2.30.0060.0369.02
5.2.20.0070.0289.00
5.2.10.0030.0308.95
5.2.00.0050.0308.80
5.1.60.0030.0258.09
5.1.50.0030.0268.08
5.1.40.0020.0268.06
5.1.30.0020.0288.41
5.1.20.0040.0278.43
5.1.10.0040.0268.16
5.1.00.0020.0288.16
5.0.50.0010.0236.64
5.0.40.0060.0166.50
5.0.30.0050.0306.31
5.0.20.0040.0186.28
5.0.10.0030.0206.26
5.0.00.0030.0306.25
4.4.90.0050.0174.78
4.4.80.0030.0204.76
4.4.70.0020.0164.76
4.4.60.0040.0174.75
4.4.50.0030.0154.77
4.4.40.0040.0294.71
4.4.30.0030.0194.76
4.4.20.0040.0154.84
4.4.10.0040.0174.84
4.4.00.0040.0284.76
4.3.110.0040.0184.67
4.3.100.0030.0184.67
4.3.90.0030.0154.64
4.3.80.0020.0254.58
4.3.70.0020.0194.63
4.3.60.0030.0154.63
4.3.50.0020.0164.62
4.3.40.0020.0254.54
4.3.30.0020.0163.30
4.3.20.0030.0153.27
4.3.10.0020.0163.23
4.3.00.0200.0206.92

preferences:
41.25 ms | 400 KiB | 5 Q