3v4l.org

run code in 300+ PHP versions simultaneously
<?php $data = <<<DATA Main{ NetworkAccess 1; MaxCPE 6; MaxClassifiers 20; GlobalPrivacyEnable 1; BaselinePrivacy{ AuthTimeout 10; ReAuthTimeout 10; AuthGraceTime 600; OperTimeout 10; ReKeyTimeout 10; TEKGraceTime 600; AuthRejectTimeout 60; SAMapWaitTimeout 1; SAMapMaxRetries 4; } UsServiceFlow{ UsServiceFlowRef 1; QosParamSetType 7; TrafficPriority 2; MaxRateSustained 1000000; SchedulingType 2; MaxTrafficBurst 8000; MaxConcatenatedBurst 8000; } DsServiceFlow{ DsServiceFlowRef 101; QosParamSetType 7; TrafficPriority 2; MaxRateSustained 10000000; } } DATA; function processItems($items, &$current, &$parent) { $item = trim(array_shift($items)); if ($item) { if (substr($item, -1) === '{') { $key = rtrim($item, '{'); $current[$key] = []; processItems($items, $current[$key], $parent); return; } if (trim($item) === '}') { processItems($items, $parent, $parent); return; } $parts = explode(' ', $item); $current[$parts[0]] = rtrim($parts[1], ';'); processItems($items, $current, $parent); } } $curr = []; processItems(explode("\n", $data), $curr, $curr); print_r($curr);

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.4.130.0110.00918.57
8.4.120.0100.00924.02
8.4.110.0040.00518.70
8.4.100.0140.00618.57
8.4.90.0100.01020.59
8.4.80.0090.01118.91
8.4.70.0100.00918.20
8.4.60.0110.01118.84
8.4.50.0100.00117.96
8.4.40.0160.00318.02
8.4.30.0100.01022.58
8.4.20.0090.00620.69
8.4.10.0090.00019.64
8.3.260.0140.00516.60
8.3.250.0130.00719.01
8.3.240.0170.00317.12
8.3.230.0040.00516.70
8.3.220.0100.00919.03
8.3.210.0110.00618.49
8.3.200.0060.00516.69
8.3.190.0090.01017.21
8.3.180.0100.00916.95
8.3.170.0180.00017.20
8.3.160.0040.01118.75
8.3.150.0060.01320.87
8.3.140.0030.00617.29
8.3.130.0060.00316.73
8.3.120.0080.00019.34
8.3.110.0000.00916.75
8.3.100.0030.01324.06
8.3.90.0130.00626.77
8.3.80.0090.00017.00
8.3.70.0040.01116.75
8.3.60.0070.00718.56
8.3.50.0030.01317.47
8.3.40.0100.00319.02
8.3.30.0090.00618.97
8.3.20.0040.00421.04
8.3.10.0050.00320.16
8.3.00.0040.00423.69
8.2.290.0100.00520.48
8.2.280.0120.00918.61
8.2.270.0110.00717.51
8.2.260.0050.00318.81
8.2.250.0040.00416.72
8.2.240.0030.00619.06
8.2.230.0060.00320.94
8.2.220.0160.00337.54
8.2.210.0040.01526.77
8.2.200.0090.00016.88
8.2.190.0150.00617.00
8.2.180.0070.00725.92
8.2.170.0070.01418.91
8.2.160.0140.00020.21
8.2.150.0000.00824.18
8.2.140.0030.00624.66
8.2.130.0040.00426.16
8.2.120.0070.00021.18
8.2.110.0030.00620.39
8.2.100.0090.00317.97
8.2.90.0110.00017.63
8.2.80.0000.00817.97
8.2.70.0040.00417.80
8.2.60.0030.00518.14
8.2.50.0000.00818.10
8.2.40.0040.00419.48
8.2.30.0040.00419.29
8.2.20.0050.00218.24
8.2.10.0070.00019.43
8.2.00.0040.00419.36
8.1.330.0110.00822.25
8.1.320.0090.01016.30
8.1.310.0040.00416.81
8.1.300.0090.00918.61
8.1.290.0100.00018.88
8.1.280.0140.00725.92
8.1.270.0040.00422.23
8.1.260.0030.00526.35
8.1.250.0080.00028.09
8.1.240.0070.00321.02
8.1.230.0110.00319.21
8.1.220.0040.00417.88
8.1.210.0040.00418.77
8.1.200.0000.00817.48
8.1.190.0040.00417.48
8.1.180.0000.00818.10
8.1.170.0030.00618.71
8.1.160.0070.00018.91
8.1.150.0020.00518.91
8.1.140.0030.00518.96
8.1.130.0000.00820.13
8.1.120.0050.00217.48
8.1.110.0050.00317.44
8.1.100.0070.00017.53
8.1.90.0090.00317.35
8.1.80.0080.00017.36
8.1.70.0050.00517.45
8.1.60.0080.00017.65
8.1.50.0040.00417.48
8.1.40.0030.00517.56
8.1.30.0040.00417.62
8.1.20.0030.00717.68
8.1.10.0000.00817.52
8.1.00.0040.00417.63
8.0.300.0040.00419.83
8.0.290.0080.00016.63
8.0.280.0030.00318.38
8.0.270.0070.00017.27
8.0.260.0000.00718.45
8.0.250.0070.00017.00
8.0.240.0030.00617.02
8.0.230.0000.00717.05
8.0.220.0030.00316.82
8.0.210.0040.00416.96
8.0.200.0000.00716.87
8.0.190.0000.00716.88
8.0.180.0000.00716.85
8.0.170.0000.00916.94
8.0.160.0000.00716.93
8.0.150.0050.00216.89
8.0.140.0050.00316.84
8.0.130.0060.00013.44
8.0.120.0090.00016.84
8.0.110.0030.00516.80
8.0.100.0000.00816.91
8.0.90.0030.00516.75
8.0.80.0030.01117.02
8.0.70.0040.00416.94
8.0.60.0040.00416.98
8.0.50.0070.00016.83
8.0.30.0110.00617.24
8.0.20.0110.00717.25
8.0.10.0000.00716.92
8.0.00.0110.00816.70
7.4.330.0000.00515.55
7.4.320.0070.00016.66
7.4.300.0000.00716.55
7.4.290.0030.00516.72
7.4.280.0020.00516.47
7.4.270.0030.00316.58
7.4.260.0080.00016.59
7.4.250.0030.00316.63
7.4.240.0050.00216.67
7.4.230.0000.00716.47
7.4.220.0060.00316.48
7.4.210.0050.01216.63
7.4.200.0000.00716.43
7.4.160.0100.00816.51
7.4.130.0130.00716.65
7.4.120.0120.00616.48
7.4.110.0110.00716.75
7.4.100.0150.00316.65
7.4.90.0140.00316.65
7.4.80.0100.00919.39
7.4.70.0100.00616.56
7.4.60.0100.00616.60
7.4.50.0080.00216.50
7.4.40.0120.00316.64
7.4.00.0070.01015.09
7.3.330.0020.00213.45
7.3.320.0050.00013.56
7.3.310.0070.00016.51
7.3.300.0070.00016.40
7.3.290.0030.00316.49
7.3.280.0140.00316.46
7.3.260.0110.00916.52
7.3.240.0120.00616.55
7.3.230.0080.00816.68
7.3.210.0030.01316.79
7.3.200.0130.00816.40
7.3.190.0170.00616.57
7.3.180.0030.01316.71
7.3.170.0120.00916.71
7.3.160.0070.01016.52
7.3.60.0070.01414.62
7.3.50.0100.00314.95
7.3.40.0100.00314.78
7.3.30.0090.01214.82
7.3.20.0100.00516.70
7.3.10.0110.00416.64
7.3.00.0040.01116.59
7.2.330.0070.01016.57
7.2.320.0140.01016.73
7.2.310.0110.00816.59
7.2.300.0130.01016.63
7.2.290.0090.00916.67
7.2.190.0120.00915.03
7.2.180.0070.00715.10
7.2.170.0090.01515.07
7.2.160.0090.00614.83
7.2.150.0100.00516.48
7.2.140.0120.00316.71
7.2.130.0040.01216.83
7.2.120.0110.00816.89
7.2.110.0070.00816.73
7.2.100.0060.00616.90
7.2.90.0160.00416.98
7.2.80.0090.00316.75
7.2.70.0070.00716.81
7.2.60.0070.00717.06
7.2.50.0150.00716.70
7.2.40.0030.01916.91
7.2.30.0170.00617.04
7.2.20.0100.01316.66
7.2.10.0100.00316.82
7.2.00.0000.01416.84
7.1.300.0060.00615.57
7.1.290.0130.00315.83
7.1.280.0140.00015.76
7.1.270.0060.00915.90
7.1.260.0090.00315.97
7.1.250.0060.01315.86

preferences:
29.92 ms | 403 KiB | 5 Q