3v4l.org

run code in 300+ PHP versions simultaneously
<?php $phonenumer = '+31 (0)612345678'; $phonenumber = str_replace([' ', '-', '.', '(', ')'], '', $phonenumber); if (strpos($phonenumber, '+3106') === 0) { $phonenumber = '+316' . substr($phonenumber, 5); } echo $phonenumber;

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.00016.38
8.3.50.0090.00916.07
8.3.40.0110.01118.56
8.3.30.0070.00718.73
8.3.20.0020.00520.32
8.3.10.0030.00723.65
8.3.00.0080.00021.83
8.2.180.0110.01118.53
8.2.170.0090.00622.96
8.2.160.0100.01019.03
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0090.00021.00
8.2.120.0030.00626.35
8.2.110.0060.00320.35
8.2.100.0100.00317.91
8.2.90.0000.00818.92
8.2.80.0030.00618.03
8.2.70.0100.00317.63
8.2.60.0000.00918.01
8.2.50.0000.00818.10
8.2.40.0040.00420.55
8.2.30.0040.00419.19
8.2.20.0060.00317.96
8.2.10.0070.00017.99
8.2.00.0000.00718.18
8.1.280.0100.01025.92
8.1.270.0070.00022.19
8.1.260.0000.00726.35
8.1.250.0050.00228.09
8.1.240.0000.00824.03
8.1.230.0060.00617.77
8.1.220.0030.00617.79
8.1.210.0040.00418.77
8.1.200.0030.00617.23
8.1.190.0040.00417.22
8.1.180.0000.00918.10
8.1.170.0050.00518.30
8.1.160.0040.00419.04
8.1.150.0030.00318.75
8.1.140.0000.00819.42
8.1.130.0070.00018.73
8.1.120.0000.00717.40
8.1.110.0050.00317.23
8.1.100.0080.00017.45
8.1.90.0040.00417.43
8.1.80.0030.00317.34
8.1.70.0030.00317.38
8.1.60.0060.00317.51
8.1.50.0030.00517.42
8.1.40.0050.00217.42
8.1.30.0040.00417.63
8.1.20.0000.00817.43
8.1.10.0000.00817.53
8.1.00.0040.00417.42
8.0.300.0070.00318.77
8.0.290.0000.00716.88
8.0.280.0040.00418.35
8.0.270.0030.00517.19
8.0.260.0030.00316.83
8.0.250.0070.00017.02
8.0.240.0060.00317.01
8.0.230.0000.00716.95
8.0.220.0030.00316.78
8.0.210.0030.00316.79
8.0.200.0060.00016.94
8.0.190.0030.00516.82
8.0.180.0000.00716.92
8.0.170.0000.00716.82
8.0.160.0000.00816.93
8.0.150.0040.00416.78
8.0.140.0040.00416.71
8.0.130.0000.00513.30
8.0.120.0040.00416.80
8.0.110.0000.00816.73
8.0.100.0050.00216.91
8.0.90.0000.00716.88
8.0.80.0100.00716.91
8.0.70.0050.00216.79
8.0.60.0040.00416.81
8.0.50.0000.00816.75
8.0.30.0070.01317.06
8.0.20.0100.00917.40
8.0.10.0040.00416.86
8.0.00.0060.01216.80
7.4.330.0050.00015.55
7.4.320.0000.00616.48
7.4.300.0030.00316.55
7.4.290.0030.00316.48
7.4.280.0090.00016.40
7.4.270.0030.00316.59
7.4.260.0070.00016.50
7.4.250.0000.00816.52
7.4.240.0030.00316.55
7.4.230.0030.00316.49
7.4.220.0030.01416.71
7.4.210.0150.00016.43
7.4.200.0000.00716.59
7.4.160.0140.00516.50
7.4.150.0090.00917.40
7.4.140.0140.00517.86
7.4.130.0090.00916.38
7.4.120.0080.01016.50
7.4.110.0100.00716.59
7.4.100.0030.01416.54
7.4.90.0110.01116.50
7.4.80.0090.00919.39
7.4.70.0030.01716.59
7.4.60.0090.00916.48
7.4.50.0110.00416.46
7.4.40.0040.01316.57
7.4.30.0160.00016.43
7.4.10.0000.01114.97
7.4.00.0070.00714.91
7.3.330.0030.00313.05
7.3.320.0050.00013.05
7.3.310.0000.00616.28
7.3.300.0030.00316.30
7.3.290.0130.00416.30
7.3.280.0080.00716.33
7.3.270.0080.00817.40
7.3.260.0120.00916.36
7.3.250.0090.00716.43
7.3.240.0130.00916.40
7.3.230.0070.01016.28
7.3.210.0110.01116.46
7.3.200.0110.01116.37
7.3.190.0110.01016.38
7.3.180.0080.00816.23
7.3.170.0110.00716.40
7.3.160.0030.01216.42
7.3.130.0040.00715.02
7.3.120.0050.00914.91
7.3.110.0030.01014.80
7.3.100.0080.00714.60
7.3.90.0030.00914.76
7.3.80.0090.00314.79
7.3.70.0020.00914.89
7.3.60.0060.00514.66
7.3.50.0050.00714.70
7.3.40.0030.00914.67
7.3.30.0020.00914.69
7.3.20.0070.00516.69
7.3.10.0050.00616.41
7.3.00.0070.00716.56
7.2.330.0140.00316.46
7.2.320.0060.01616.50
7.2.310.0130.00916.66
7.2.300.0070.01016.57
7.2.290.0030.01316.35
7.2.260.0070.00715.10
7.2.250.0050.00915.00
7.2.240.0050.01114.87
7.2.230.0030.01015.10
7.2.220.0030.00814.99
7.2.210.0070.00715.05
7.2.200.0070.00515.18
7.2.190.0050.00614.92
7.2.180.0030.00814.95
7.2.170.0090.00414.89
7.2.160.0040.00815.05
7.2.150.0040.00816.90
7.2.140.0040.00816.91
7.2.130.0040.00816.80
7.2.120.0080.00416.71
7.2.110.0080.00416.79
7.2.100.0130.00016.83
7.2.90.0030.00916.91
7.2.80.0040.00816.79
7.2.70.0100.00216.68
7.2.60.0050.00716.79
7.2.50.0060.00616.69
7.2.40.0040.00816.90
7.2.30.0080.00316.98
7.2.20.0090.00316.51
7.2.10.0080.00416.57
7.2.00.0050.00718.04
7.1.330.0050.00715.90
7.1.320.0040.00615.79
7.1.310.0080.00515.95
7.1.300.0020.00915.85
7.1.290.0020.00915.81
7.1.280.0030.00815.56
7.1.270.0090.00415.75
7.1.260.0070.00615.98
7.1.250.0000.01115.48
7.1.240.0040.00715.87
7.1.230.0000.01115.86
7.1.220.0100.00015.81
7.1.210.0070.00315.83
7.1.200.0020.00915.84
7.1.190.0070.00415.68
7.1.180.0070.00515.85
7.1.170.0060.00615.58
7.1.160.0040.00815.85
7.1.150.0080.00315.73
7.1.140.0050.00515.90
7.1.130.0000.00715.66
7.1.120.0000.01215.81
7.1.110.0060.00315.67
7.1.100.0030.00916.84
7.1.90.0040.00715.45
7.1.80.0050.00215.82
7.1.70.0050.00716.46
7.1.60.0140.00825.35
7.1.50.0110.01025.27
7.1.40.0100.01325.01
7.1.30.0080.01325.06
7.1.20.0110.01425.22
7.1.10.0070.00516.18
7.1.00.0090.00516.10
7.0.330.0070.00315.05
7.0.320.0070.00415.35
7.0.310.0030.00715.50
7.0.300.0030.00815.34
7.0.290.0000.00715.35
7.0.280.0030.00715.27
7.0.270.0030.00715.17
7.0.260.0070.00015.59
7.0.250.0070.00315.43
7.0.240.0030.01015.35
7.0.230.0030.00615.56
7.0.220.0030.00615.17
7.0.210.0070.00415.14
7.0.200.0020.00915.86
7.0.190.0030.01015.79
7.0.180.0120.00215.77
7.0.170.0070.00515.80
7.0.160.0040.01015.61
7.0.150.0050.00915.95
7.0.140.0090.00615.79
7.0.130.0020.00915.95
7.0.120.0020.01415.95
7.0.110.0060.00916.02
7.0.100.0050.01115.75
7.0.90.0080.00615.83
7.0.80.0060.00615.67
7.0.70.0040.00915.87
7.0.60.0040.01115.79
7.0.50.0060.01115.67
7.0.40.0040.01415.02
7.0.30.0030.01215.04
7.0.20.0050.00914.88
7.0.10.0070.00715.08
7.0.00.0030.01214.96
5.6.400.0050.00513.91
5.6.390.0070.00414.50
5.6.380.0050.00713.94
5.6.370.0000.01114.09
5.6.360.0000.01113.88
5.6.350.0120.00014.23
5.6.340.0070.00314.30
5.6.330.0030.00714.22
5.6.320.0090.00014.18
5.6.310.0060.00614.53
5.6.300.0030.01014.05
5.6.290.0090.00614.42
5.6.280.0090.00714.02
5.6.270.0040.01114.50
5.6.260.0060.00614.43
5.6.250.0000.00714.43
5.6.240.0040.00714.27
5.6.230.0080.00414.30
5.6.220.0080.00414.24
5.6.210.0030.01014.30
5.6.200.0070.00014.19
5.6.190.0060.00614.23
5.6.180.0000.01014.16
5.6.170.0070.00714.05
5.6.160.0060.00914.65
5.6.150.0070.00714.20
5.6.140.0040.00414.31
5.6.130.0040.00414.19
5.6.120.0070.00714.08
5.6.110.0060.00614.09
5.6.100.0030.00614.32
5.6.90.0030.01014.32
5.6.80.0090.00314.43
5.6.70.0070.00313.92
5.6.60.0030.01014.55
5.6.50.0080.00414.24
5.6.40.0060.00914.13
5.6.30.0000.01514.18
5.6.20.0100.00014.08
5.6.10.0030.00614.58
5.6.00.0050.00214.17

preferences:
41.92 ms | 400 KiB | 5 Q