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.0120.00616.63
8.3.60.0140.00416.50
8.3.50.0120.00918.18
8.3.40.0080.00818.84
8.3.30.0070.01018.76
8.3.20.0040.00420.58
8.3.10.0060.00321.73
8.3.00.0070.00023.66
8.2.190.0040.01418.54
8.2.180.0040.01117.00
8.2.170.0080.00822.96
8.2.160.0100.00320.39
8.2.150.0020.00524.18
8.2.140.0100.00024.66
8.2.130.0070.00020.35
8.2.120.0070.00026.35
8.2.110.0030.00719.34
8.2.100.0080.00317.84
8.2.90.0090.00018.03
8.2.80.0080.00018.16
8.2.70.0000.00917.93
8.2.60.0050.00218.05
8.2.50.0030.00518.07
8.2.40.0030.00518.34
8.2.30.0000.00718.06
8.2.20.0040.00417.98
8.2.10.0000.00719.17
8.2.00.0000.00718.06
8.1.280.0090.00925.92
8.1.270.0060.00318.81
8.1.260.0070.00026.35
8.1.250.0000.00728.09
8.1.240.0110.00020.75
8.1.230.0060.00620.99
8.1.220.0080.00017.74
8.1.210.0000.00818.94
8.1.200.0000.00817.25
8.1.190.0040.00417.35
8.1.180.0030.00718.10
8.1.170.0000.01118.76
8.1.160.0040.00418.84
8.1.150.0050.00218.91
8.1.140.0040.00418.90
8.1.130.0070.00020.16
8.1.120.0000.00717.62
8.1.110.0060.00317.58
8.1.100.0040.00417.59
8.1.90.0000.00717.48
8.1.80.0000.01017.58
8.1.70.0000.00717.57
8.1.60.0000.00817.61
8.1.50.0040.00417.66
8.1.40.0000.00917.66
8.1.30.0060.00317.76
8.1.20.0040.00417.81
8.1.10.0050.00317.57
8.1.00.0090.00017.54
8.0.300.0030.00520.06
8.0.290.0000.00716.75
8.0.280.0040.00418.37
8.0.270.0000.00717.31
8.0.260.0030.00318.33
8.0.250.0040.00417.01
8.0.240.0080.00017.02
8.0.230.0000.00717.14
8.0.220.0030.00316.94
8.0.210.0000.00717.04
8.0.200.0000.00817.07
8.0.190.0000.00717.05
8.0.180.0030.00517.02
8.0.170.0030.00516.93
8.0.160.0040.00417.05
8.0.150.0070.00016.92
8.0.140.0030.00316.88
8.0.130.0050.00013.46
8.0.120.0040.00416.93
8.0.110.0040.00416.94
8.0.100.0070.00017.02
8.0.90.0040.00416.83
8.0.80.0090.01117.06
8.0.70.0000.00717.03
8.0.60.0050.00316.88
8.0.50.0020.00516.86
8.0.30.0130.00517.39
8.0.20.0060.01317.40
8.0.10.0070.00017.27
8.0.00.0120.01116.80
7.4.330.0060.00015.55
7.4.320.0030.00316.78
7.4.300.0030.00316.80
7.4.290.0090.00016.84
7.4.280.0040.00416.71
7.4.270.0050.00316.76
7.4.260.0030.00316.77
7.4.250.0070.00016.77
7.4.240.0060.00316.71
7.4.230.0000.00816.61
7.4.220.0040.00416.67
7.4.210.0070.01016.76
7.4.200.0000.00716.89
7.4.140.0130.00917.86
7.4.130.0120.00816.59
7.4.120.0090.00916.65
7.4.110.0110.00716.66
7.4.100.0130.00616.68
7.4.90.0120.00616.77
7.4.80.0080.01419.39
7.4.70.0190.00016.53
7.4.60.0030.01216.75
7.4.50.0030.01216.66
7.4.40.0070.01316.75
7.4.00.0040.01215.24
7.3.330.0000.00613.20
7.3.320.0000.00613.34
7.3.310.0030.00316.34
7.3.300.0030.00316.30
7.3.290.0000.00716.28
7.3.280.0090.00916.33
7.3.260.0100.00816.63
7.3.240.0090.01016.49
7.3.230.0090.00916.57
7.3.210.0130.00316.70
7.3.200.0130.00316.64
7.3.190.0120.01216.79
7.3.180.0060.01216.30
7.3.170.0120.00616.45
7.3.160.0000.01616.63
7.3.120.0080.01015.08
7.3.110.0110.00515.00
7.3.100.0050.00914.88
7.3.90.0090.00814.90
7.3.80.0030.00914.85
7.3.70.0070.00514.79
7.3.60.0060.00815.02
7.3.50.0080.00514.87
7.3.40.0070.01014.84
7.3.30.0050.00614.95
7.3.20.0050.00716.86
7.3.10.0330.00516.04
7.3.00.0140.00916.08
7.2.330.0070.01016.88
7.2.320.0150.00616.59
7.2.310.0080.00816.82
7.2.300.0100.00716.64
7.2.290.0090.00716.79
7.2.250.0090.01115.02
7.2.240.0080.01115.23
7.2.230.0080.00815.01
7.2.220.0030.01315.01
7.2.210.0080.00515.06
7.2.200.0060.00614.93
7.2.190.0040.00615.00
7.2.180.0030.00714.99
7.2.170.0080.00715.21
7.2.160.0040.01115.17
7.2.150.0040.01516.82
7.2.140.0100.00316.66
7.2.130.0200.00716.03
7.2.120.0220.00816.00
7.2.110.0230.00816.03
7.2.100.0230.00315.96
7.2.90.0180.00516.05
7.2.80.0180.00516.05
7.2.70.0200.00915.87
7.2.60.0190.00816.05
7.2.50.0210.00716.04
7.2.40.0200.00516.00
7.2.30.0170.00415.92
7.2.20.0220.01015.95
7.2.10.0340.00215.84
7.2.00.0220.00715.96
7.1.330.0080.00815.94
7.1.320.0030.00915.95
7.1.310.0020.01215.71
7.1.300.0050.00515.93
7.1.290.0030.00815.79
7.1.280.0070.00715.98
7.1.270.0030.00615.70
7.1.260.0080.00615.95
7.1.250.0220.00914.87
7.1.240.0070.00715.74
7.1.230.0080.00615.38
7.1.220.0040.00815.42
7.1.210.0070.00715.77
7.1.200.0030.00915.65
7.1.190.0090.00615.66
7.1.180.0000.01415.47
7.1.170.0090.00015.77
7.1.160.0000.01415.53
7.1.150.0040.00415.65
7.1.140.0070.00715.50
7.1.130.0030.01015.70
7.1.120.0080.00415.54
7.1.110.0030.00915.82
7.1.100.0000.01315.75
7.1.90.0060.00915.92
7.1.80.0040.00415.83
7.1.70.0000.01315.84
7.1.60.0070.00715.63
7.1.50.0000.01416.05
7.1.40.0140.00015.91
7.1.30.0070.00715.88
7.1.20.0040.01215.80
7.1.10.0000.00915.78
7.1.00.0070.01015.67

preferences:
17.75 ms | 401 KiB | 5 Q