3v4l.org

run code in 300+ PHP versions simultaneously
<?php function extract_name($d) { preg_match('#\[(.*?)\]#', $d, $match); return $match[1]; } $d = json_decode('[{"name":"form[id]","value":"10"},{"name":"form[name]","value":"Telefon2"},{"name":"form[uuid]","value":"bb80878ad4"},{"name":"form[productgroup]","value":"6"},{"name":"form[category]","value":"1"},{"name":"form[documents]","value":"7"}]'); $dData = array_combine(array_map('extract_name', array_column($d, 'name')), array_column($d, 'value')); $json = json_encode($dData); var_dump( $dData, $json );

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.5.10.0140.00516.89
8.5.00.0100.01120.14
8.4.150.0030.00014.05
8.4.140.0120.00818.06
8.4.130.0100.00818.82
8.4.120.0120.00824.14
8.4.110.0120.00920.90
8.4.100.0120.00817.81
8.4.90.0150.00520.32
8.4.80.0110.00818.24
8.4.70.0120.00817.82
8.4.60.0130.00820.49
8.4.50.0160.00517.82
8.4.40.0030.01619.45
8.4.30.0090.00919.74
8.4.20.0030.00618.77
8.4.10.0070.01319.60
8.3.280.0100.01318.68
8.3.270.0120.00816.73
8.3.260.0060.00316.62
8.3.250.0100.00718.98
8.3.240.0130.00517.07
8.3.230.0030.00616.69
8.3.220.0140.00616.68
8.3.210.0130.00716.62
8.3.200.0090.00516.48
8.3.190.0080.00217.20
8.3.180.0120.00816.81
8.3.170.0100.01016.71
8.3.160.0070.01118.91
8.3.150.0090.00016.47
8.3.140.0030.00620.66
8.3.130.0040.00418.36
8.3.120.0030.00518.98
8.3.110.0090.00018.38
8.3.100.0060.00318.31
8.3.90.0060.00918.50
8.3.80.0030.00618.43
8.3.70.0090.01218.55
8.3.60.0120.00618.56
8.3.50.0060.00717.34
8.3.40.0040.01118.96
8.3.30.0140.00718.84
8.3.20.0050.00320.52
8.3.10.0080.00023.57
8.3.00.0030.00622.21
8.2.290.0080.01022.25
8.2.280.0060.00318.37
8.2.270.0090.00916.90
8.2.260.0040.00417.48
8.2.250.0090.00918.44
8.2.240.0030.00619.09
8.2.230.0050.00520.94
8.2.220.0130.00224.06
8.2.210.0030.00526.77
8.2.200.0030.00617.00
8.2.190.0140.00417.00
8.2.180.0100.00718.54
8.2.170.0070.00722.96
8.2.160.0070.01120.53
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0040.00419.85
8.2.110.0030.00619.27
8.2.100.0060.00618.03
8.2.90.0000.00819.40
8.2.80.0000.00817.97
8.2.70.0050.00517.75
8.2.60.0060.00318.03
8.2.50.0050.00318.07
8.2.40.0060.00318.22
8.2.30.0050.00317.95
8.2.20.0040.00418.02
8.2.10.0050.00219.19
8.2.00.0000.00819.89
8.1.330.0110.00822.07
8.1.320.0090.01220.34
8.1.310.0070.00718.28
8.1.300.0030.00618.16
8.1.290.0090.00018.88
8.1.280.0140.00425.92
8.1.270.0000.00820.43
8.1.260.0040.00426.35
8.1.250.0060.00328.09
8.1.240.0090.00919.39
8.1.230.0070.00322.15
8.1.220.0040.00417.74
8.1.210.0030.00518.77
8.1.200.0060.00317.48
8.1.190.0030.00617.35
8.1.180.0040.00418.10
8.1.170.0030.00718.62
8.1.160.0000.00718.86
8.1.150.0050.00318.87
8.1.140.0030.00320.34
8.1.130.0000.00720.34
8.1.120.0070.00317.52
8.1.110.0040.00417.55
8.1.100.0040.00417.43
8.1.90.0030.00317.46
8.1.80.0050.00317.57
8.1.70.0070.00017.38
8.1.60.0000.00917.58
8.1.50.0050.00317.62
8.1.40.0000.00817.63
8.1.30.0000.00917.76
8.1.20.0000.01117.70
8.1.10.0050.00317.70
8.1.00.0080.00017.63
8.0.300.0040.00418.77
8.0.290.0030.00616.88
8.0.280.0030.00318.41
8.0.270.0060.00316.91
8.0.260.0040.00420.15
8.0.250.0040.00416.94
8.0.240.0070.00017.04
8.0.230.0070.00016.94
8.0.220.0000.00716.91
8.0.210.0000.00816.84
8.0.200.0070.00016.91
8.0.190.0000.00817.03
8.0.180.0020.00516.91
8.0.170.0040.00417.04
8.0.160.0030.00617.05
8.0.150.0040.00416.81
8.0.140.0000.00716.93
8.0.130.0000.00613.39
8.0.120.0040.00416.84
8.0.110.0040.00416.88
8.0.100.0000.00716.97
8.0.90.0060.00316.97
8.0.80.0070.01116.94
8.0.70.0040.00417.06
8.0.60.0070.00017.02
8.0.50.0080.00017.01
8.0.30.0130.00417.21
8.0.20.0160.00416.98
8.0.10.0050.00217.08
8.0.00.0110.00816.92
7.4.330.0000.00616.68
7.4.320.0070.00016.74
7.4.300.0060.00016.73
7.4.290.0030.00316.72
7.4.280.0000.00816.79
7.4.270.0040.00416.55
7.4.260.0080.00016.58
7.4.250.0000.00716.70
7.4.240.0000.00816.74
7.4.230.0070.00016.78
7.4.220.0080.00016.73
7.4.210.0050.01316.75
7.4.200.0040.00416.64
7.4.160.0110.00616.56
7.4.140.0090.01317.86
7.4.130.0200.00616.60
7.4.120.0060.01216.58
7.4.110.0000.01616.70
7.4.100.0100.01016.61
7.4.90.0060.01216.68
7.4.80.0130.01019.39
7.4.70.0080.00816.49
7.4.60.0030.01316.52
7.4.50.0100.00716.41
7.4.40.0090.01216.46
7.4.00.0100.00815.10
7.3.330.0020.00513.26
7.3.320.0030.00313.32
7.3.310.0030.00316.23
7.3.300.0070.00016.36
7.3.290.0060.00916.41
7.3.280.0090.00816.39
7.3.260.0110.00816.54
7.3.240.0130.00616.40
7.3.230.0160.00016.45
7.3.210.0100.01316.57
7.3.200.0130.00316.66
7.3.190.0140.00316.49
7.3.180.0150.00616.28
7.3.170.0170.00016.40
7.3.160.0150.00416.66
7.3.120.0130.00315.05
7.3.110.0060.00614.72
7.3.100.0190.00014.78
7.3.90.0040.00414.80
7.3.80.0080.00314.93
7.3.70.0000.01515.04
7.3.60.0000.01614.96
7.3.50.0100.00314.96
7.3.40.0040.00714.77
7.3.30.0110.00714.70
7.3.20.0290.00515.91
7.3.10.0270.00915.68
7.3.00.0310.00515.76
7.2.330.0110.00716.87
7.2.320.0070.01016.56
7.2.310.0030.01316.74
7.2.300.0160.00016.70
7.2.290.0120.00616.64
7.2.250.0110.00815.13
7.2.240.0100.00614.99
7.2.230.0030.00914.88
7.2.220.0090.00615.17
7.2.210.0040.01115.01
7.2.200.0030.00815.08
7.2.190.0070.00715.00
7.2.180.0080.00414.84
7.2.170.0000.01315.25
7.2.160.0050.00914.94
7.2.150.0260.01115.92
7.2.140.0250.00516.02
7.2.130.0250.00516.11
7.2.120.0180.01215.78
7.2.110.0300.00316.13
7.2.100.0250.00615.80
7.2.90.0300.00615.86
7.2.80.0330.00815.85
7.2.70.0280.00816.06
7.2.60.0290.00715.96
7.2.50.0230.01115.97
7.2.40.0270.01115.96
7.2.30.0250.01315.97
7.2.20.0350.00515.92
7.2.10.0280.00916.12
7.2.00.0260.01015.96
7.1.330.0060.01316.06
7.1.320.0100.00715.87
7.1.310.0030.01216.13
7.1.300.0030.01315.99
7.1.290.0000.01415.66
7.1.280.0060.00315.82
7.1.270.0580.00715.00
7.1.260.0270.00715.05
7.1.250.0330.00314.83
7.1.240.0060.00615.95
7.1.230.0070.00716.01
7.1.220.0040.00815.82
7.1.210.0000.00916.08
7.1.200.0040.01115.73
7.1.190.0030.01015.70
7.1.180.0030.01215.85
7.1.170.0030.01415.79
7.1.160.0090.00915.95
7.1.150.0050.00316.04
7.1.140.0000.01015.86
7.1.130.0040.00715.62
7.1.120.0060.00915.88
7.1.110.0040.00815.94
7.1.100.0030.01015.83
7.1.90.0000.01115.86
7.1.80.0050.00515.96
7.1.70.0070.00715.73
7.1.60.0070.00415.88
7.1.50.0120.00015.69
7.1.40.0060.00615.75
7.1.30.0070.00715.84
7.1.20.0040.01115.92
7.1.10.0070.00715.58
7.1.00.0060.01315.96

preferences:
181.87 ms | 403 KiB | 5 Q