3v4l.org

run code in 300+ PHP versions simultaneously
<?php $signed_number_strings = ["--1", "---33", "+-444"]; foreach ($signed_number_strings as $string) { var_dump((int)preg_replace('~\++|-\+*-~', '', $string)); }

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.70.0070.01118.43
8.3.60.0130.00618.55
8.3.50.0110.00418.34
8.3.40.0110.00418.80
8.3.30.0060.00918.84
8.3.20.0040.00420.73
8.3.10.0050.00321.75
8.3.00.0000.00723.46
8.2.190.0120.00316.63
8.2.180.0120.00816.50
8.2.170.0090.00622.96
8.2.160.0040.01120.13
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0070.00321.05
8.2.110.0060.00321.15
8.2.100.0080.00318.09
8.2.90.0000.00817.97
8.2.80.0000.00817.97
8.2.70.0040.00417.61
8.2.60.0050.00318.04
8.2.50.0060.00318.07
8.2.40.0030.00518.16
8.2.30.0000.00917.95
8.2.20.0040.00418.14
8.2.10.0040.00419.32
8.2.00.0070.00318.15
8.1.280.0120.00325.92
8.1.270.0000.00818.84
8.1.260.0030.00626.35
8.1.250.0110.00328.09
8.1.240.0030.00623.98
8.1.230.0000.01222.56
8.1.220.0040.00417.74
8.1.210.0000.00818.77
8.1.200.0040.00417.48
8.1.190.0030.00617.48
8.1.180.0040.00418.10
8.1.170.0040.00418.78
8.1.160.0050.00318.86
8.1.150.0070.00018.87
8.1.140.0050.00218.94
8.1.130.0030.00317.50
8.1.120.0030.00317.54
8.1.110.0040.00417.42
8.1.100.0050.00317.50
8.1.90.0030.00617.49
8.1.80.0000.00817.55
8.1.70.0030.00317.48
8.1.60.0040.00417.68
8.1.50.0070.00017.57
8.1.40.0040.00417.56
8.1.30.0030.00517.73
8.1.20.0060.00317.79
8.1.10.0030.00617.45
8.1.00.0000.00817.41
8.0.300.0070.00019.91
8.0.290.0040.00416.88
8.0.280.0030.00318.33
8.0.270.0000.00717.27
8.0.260.0000.00716.94
8.0.250.0070.00017.09
8.0.240.0000.00717.07
8.0.230.0030.00317.05
8.0.220.0000.00617.01
8.0.210.0000.00717.04
8.0.200.0080.00017.14
8.0.190.0000.00717.03
8.0.180.0040.00417.05
8.0.170.0000.00817.04
8.0.160.0060.00317.04
8.0.150.0030.00616.96
8.0.140.0040.00317.05
8.0.130.0060.00013.45
8.0.120.0040.00416.99
8.0.110.0020.00516.87
8.0.100.0050.00317.02
8.0.90.0040.00416.87
8.0.80.0080.01117.03
8.0.70.0070.00016.96
8.0.60.0070.00016.88
8.0.50.0000.00717.00
8.0.30.0060.01017.33
8.0.20.0060.02017.24
8.0.10.0050.00217.14
8.0.00.0090.01716.87
7.4.330.0050.00015.55
7.4.320.0000.00616.61
7.4.300.0030.00316.69
7.4.290.0040.00416.78
7.4.280.0000.00716.79
7.4.270.0000.00716.71
7.4.260.0070.00016.63
7.4.250.0040.00416.79
7.4.240.0070.00016.70
7.4.230.0040.00416.78
7.4.220.0090.00016.91
7.4.210.0060.00816.75
7.4.200.0000.00816.61
7.4.160.0080.00816.61
7.4.140.0100.00917.86
7.4.130.0130.00616.61
7.4.120.0140.00916.85
7.4.110.0110.00816.86
7.4.100.0110.01116.61
7.4.90.0080.00816.69
7.4.80.0070.01419.39
7.4.70.0130.00316.88
7.4.60.0080.00916.70
7.4.50.0100.00616.68
7.4.40.0050.01116.64
7.4.00.0060.00315.21
7.3.330.0020.00213.16
7.3.320.0030.00313.27
7.3.310.0030.00316.50
7.3.300.0000.00716.41
7.3.290.0000.00616.44
7.3.280.0070.01016.39
7.3.260.0120.00716.63
7.3.240.0100.01216.61
7.3.230.0080.00816.81
7.3.210.0130.00616.57
7.3.200.0140.00416.82
7.3.190.0140.00316.44
7.3.180.0080.00816.70
7.3.170.0120.01016.68
7.3.160.0060.00916.41
7.3.10.2330.00014.66
7.3.00.0350.01115.02
7.2.330.0120.00616.56
7.2.320.0040.01516.90
7.2.310.0100.00716.66
7.2.300.0130.00316.73
7.2.290.0060.01316.59
7.2.131.3470.01314.97
7.2.121.1750.00315.11
7.2.110.8400.00315.05
7.2.100.6750.01014.86
7.2.90.7180.00715.11
7.2.80.5280.00715.36
7.2.70.5650.01715.08
7.2.60.5020.00315.16
7.2.50.0270.00314.94
7.2.40.0330.01315.18
7.2.30.0120.01214.96
7.2.20.0170.00315.26
7.2.10.0230.01514.90
7.2.00.0140.00715.18
7.1.250.8020.00314.06

preferences:
18.26 ms | 401 KiB | 5 Q