3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = '[locations][0][name]'; function angularModel ($formName, $inputName) { $retVal = "formData ['" . $formName . "']"; $retVal .= preg_replace_callback ('/\[(\w+\)]/', function ($matches) { print_r ($matches); }, $inputName); return $retVal; } angularModel ('relation', $str);

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.0140.00716.63
8.3.50.0080.01321.20
8.3.40.0090.00618.78
8.3.30.0150.00018.79
8.3.20.0070.00020.34
8.3.10.0040.00423.61
8.3.00.0050.00321.85
8.2.180.0070.00718.18
8.2.170.0130.00722.96
8.2.160.0000.01420.39
8.2.150.0000.00924.18
8.2.140.0050.00224.66
8.2.130.0030.00719.24
8.2.120.0070.00026.35
8.2.110.0060.00319.23
8.2.100.0110.00018.05
8.2.90.0080.00019.30
8.2.80.0080.00017.97
8.2.70.0060.00317.63
8.2.60.0060.00618.05
8.2.50.0000.00818.09
8.2.40.0000.00922.30
8.2.30.0040.00419.49
8.2.20.0050.00217.82
8.2.10.0030.00618.19
8.2.00.0000.00718.12
8.1.280.0110.00325.92
8.1.270.0130.00622.05
8.1.260.0040.00428.09
8.1.250.0070.00028.09
8.1.240.0060.00322.16
8.1.230.0040.00817.77
8.1.220.0050.00317.74
8.1.210.0060.00318.77
8.1.200.0060.00317.23
8.1.190.0030.00517.23
8.1.180.0000.00818.10
8.1.170.0030.00618.51
8.1.160.0040.00420.72
8.1.150.0060.00318.98
8.1.140.0000.00819.64
8.1.130.0000.00717.77
8.1.120.0070.00017.50
8.1.110.0050.00317.49
8.1.100.0040.00417.42
8.1.90.0040.00417.51
8.1.80.0050.00217.46
8.1.70.0040.00417.45
8.1.60.0040.00417.58
8.1.50.0040.00417.42
8.1.40.0000.00717.56
8.1.30.0080.00017.67
8.1.20.0020.00517.57
8.1.10.0050.00317.42
8.1.00.0040.00417.44
8.0.300.0040.00418.78
8.0.290.0060.00316.75
8.0.280.0070.00018.36
8.0.270.0000.00717.25
8.0.260.0030.00317.24
8.0.250.0000.00716.92
8.0.240.0040.00416.97
8.0.230.0000.00717.06
8.0.220.0070.00016.95
8.0.210.0040.00416.97
8.0.200.0000.00716.86
8.0.190.0050.00516.94
8.0.180.0040.00416.89
8.0.170.0050.00217.00
8.0.160.0030.00316.97
8.0.150.0030.00316.96
8.0.140.0070.00016.88
8.0.130.0000.00613.43
8.0.120.0040.00416.90
8.0.110.0040.00416.87
8.0.100.0040.00416.88
8.0.90.0070.00016.95
8.0.80.0090.00616.98
8.0.70.0040.00416.87
8.0.60.0040.00416.79
8.0.50.0040.00416.82
8.0.30.0090.00717.10
8.0.20.0090.01017.40
8.0.10.0020.00517.04
8.0.00.0090.01116.75
7.4.330.0050.00016.69
7.4.320.0030.00316.71
7.4.300.0030.00316.58
7.4.290.0000.00716.47
7.4.280.0030.00616.66
7.4.270.0040.00416.59
7.4.260.0000.00616.53
7.4.250.0070.00016.59
7.4.240.0050.00316.58
7.4.230.0030.00316.46
7.4.220.0100.01416.66
7.4.210.0170.00016.78
7.4.200.0030.00316.47
7.4.160.0110.00416.48
7.4.150.0060.01217.40
7.4.140.0140.00517.86
7.4.130.0080.00916.60
7.4.120.0080.00816.60
7.4.110.0100.00716.60
7.4.100.0090.01516.63
7.4.90.0170.00016.59
7.4.80.0140.00419.39
7.4.70.0100.00616.87
7.4.60.0030.01316.46
7.4.50.0060.01016.50
7.4.40.0080.01116.65
7.4.30.0090.00916.69
7.4.00.0030.01515.14
7.3.330.0060.00013.35
7.3.320.0000.00613.21
7.3.310.0040.00416.40
7.3.300.0030.00316.47
7.3.290.0070.01016.38
7.3.280.0040.01116.41
7.3.270.0100.00717.40
7.3.260.0150.00416.41
7.3.250.0120.00716.46
7.3.240.0060.01116.45
7.3.230.0090.01316.52
7.3.210.0040.01416.54
7.3.200.0120.00919.39
7.3.190.0040.01716.57
7.3.180.0150.00616.33
7.3.170.0120.00916.45
7.3.160.0080.00816.46
7.3.120.0070.00714.90
7.3.110.0090.00614.82
7.3.100.0140.00315.12
7.3.90.0080.00314.93
7.3.80.0130.00614.98
7.3.70.0060.00914.99
7.3.60.0060.00614.81
7.3.50.0040.01115.08
7.3.40.0060.00614.84
7.3.30.0040.00715.02
7.3.20.0080.00316.74
7.3.10.0090.00316.79
7.3.00.0060.00616.68
7.2.330.0090.00916.59
7.2.320.0150.00616.55
7.2.310.0160.00016.63
7.2.300.0030.01316.67
7.2.290.0120.00316.59
7.2.250.0060.01215.19
7.2.240.0030.01615.20
7.2.230.0040.01415.20
7.2.220.0050.00514.79
7.2.210.0000.01614.66
7.2.200.0130.00314.83
7.2.190.0000.00915.07
7.2.180.0000.01414.76
7.2.170.0090.00315.07
7.2.60.0070.00716.96
7.2.50.0070.00716.72
7.2.00.0040.00819.57
7.1.330.0060.00915.99
7.1.320.0030.00716.04
7.1.310.0070.01015.97
7.1.300.0040.00815.96
7.1.290.0060.00615.69
7.1.280.0040.01115.97
7.1.270.0040.01115.82
7.1.260.0030.00616.09
7.1.200.0040.00816.03
7.1.100.0120.00418.39
7.1.70.0030.00517.07
7.1.60.0170.01319.40
7.1.50.0110.01716.98
7.1.00.0100.07022.45
7.0.200.0350.00714.53
7.0.60.0200.05021.66
7.0.50.0070.08017.87
7.0.40.0030.04720.04
7.0.30.0230.06320.11
7.0.20.0270.07720.15
7.0.10.0070.06020.22
7.0.00.0070.04020.08
5.6.280.0030.06720.87
5.6.210.0070.08320.71
5.6.200.0000.09318.12
5.6.190.0030.06020.47
5.6.180.0330.06320.64
5.6.170.0270.07320.50
5.6.160.0100.08020.50
5.6.150.0030.04718.12
5.6.140.0030.08718.14
5.6.130.0030.06318.18
5.6.120.0030.08721.01
5.6.110.0070.08321.05
5.6.100.0000.04320.99
5.6.90.0130.07720.98
5.6.80.0100.05320.28
5.5.350.0200.05320.31
5.5.340.0070.08317.98
5.5.330.0030.05320.19
5.5.320.0230.04020.42
5.5.310.0270.08020.37
5.5.300.0030.05017.99
5.5.290.0000.04318.08
5.5.280.0000.07320.86
5.5.270.0030.04020.87
5.5.260.0100.08020.80
5.5.250.0070.06720.69
5.5.240.0100.04320.29

preferences:
42.58 ms | 401 KiB | 5 Q