3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = "Hello! 123 test this? 456. done? 100%"; $int = intval(preg_replace('/[^0-9]+/', '', $string), 10); echo $int; $str = 'In My Cart : 11 12 items'; preg_match_all('!\d+!', $str, $matches); print_r($matches);

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.0120.00916.63
8.3.50.0100.00616.65
8.3.40.0120.00318.79
8.3.30.0070.00718.71
8.3.20.0080.00020.33
8.3.10.0040.00421.90
8.3.00.0040.00419.38
8.2.180.0070.00718.15
8.2.170.0110.00422.96
8.2.160.0110.00420.36
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0040.00421.06
8.2.120.0080.00026.35
8.2.110.0100.00721.01
8.2.100.0050.00517.91
8.2.90.0050.00319.23
8.2.80.0000.00817.97
8.2.70.0030.00617.75
8.2.60.0050.00317.80
8.2.50.0000.00818.10
8.2.40.0000.00720.59
8.2.30.0000.00820.94
8.2.20.0080.00017.95
8.2.10.0060.00318.20
8.2.00.0040.00418.01
8.1.280.0140.00725.92
8.1.270.0080.00023.91
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0090.00419.29
8.1.230.0070.00419.01
8.1.220.0060.00317.78
8.1.210.0030.00518.77
8.1.200.0030.00617.48
8.1.190.0040.00417.23
8.1.180.0070.00018.10
8.1.170.0040.00419.06
8.1.160.0040.00419.07
8.1.150.0040.00420.63
8.1.140.0060.00319.44
8.1.130.0070.00018.76
8.1.120.0070.00017.44
8.1.110.0000.00917.39
8.1.100.0030.00517.60
8.1.90.0040.00417.55
8.1.80.0040.00417.50
8.1.70.0000.00717.43
8.1.60.0000.00917.55
8.1.50.0040.00417.57
8.1.40.0000.00817.49
8.1.30.0050.00217.73
8.1.20.0000.00817.77
8.1.10.0000.00817.54
8.1.00.0000.00917.50
8.0.300.0040.00420.07
8.0.290.0000.00716.58
8.0.280.0000.00818.45
8.0.270.0050.00217.18
8.0.260.0000.00618.47
8.0.250.0030.00317.05
8.0.240.0040.00417.10
8.0.230.0000.00817.02
8.0.220.0000.00616.84
8.0.210.0050.00316.98
8.0.200.0030.00317.05
8.0.190.0030.00617.03
8.0.180.0070.00016.98
8.0.170.0070.00016.98
8.0.160.0040.00417.00
8.0.150.0030.00316.87
8.0.140.0050.00316.90
8.0.130.0030.00313.36
8.0.120.0080.00016.91
8.0.110.0080.00016.77
8.0.100.0080.00016.88
8.0.90.0040.00416.82
8.0.80.0130.00716.92
8.0.70.0000.00817.01
8.0.60.0080.00016.96
8.0.50.0030.00516.87
8.0.30.0130.00517.18
8.0.20.0130.00717.45
8.0.10.0000.00716.92
8.0.00.0100.00717.03
7.4.330.0040.00415.55
7.4.320.0030.00316.72
7.4.300.0000.00616.76
7.4.290.0030.00316.54
7.4.280.0040.00416.62
7.4.270.0030.00316.66
7.4.260.0030.00616.72
7.4.250.0070.00016.64
7.4.240.0000.00716.55
7.4.230.0000.00716.54
7.4.220.0030.01416.70
7.4.210.0150.00016.64
7.4.200.0030.00316.84
7.4.160.0050.01016.77
7.4.150.0090.00917.40
7.4.140.0090.01117.86
7.4.130.0080.01116.73
7.4.120.0070.01416.63
7.4.110.0070.01316.61
7.4.100.0130.00716.61
7.4.90.0070.01116.47
7.4.80.0040.01319.39
7.4.70.0000.01616.69
7.4.60.0130.00316.35
7.4.50.0060.00916.65
7.4.40.0090.01216.73
7.4.30.0100.00716.50
7.4.00.0040.01415.08
7.3.330.0060.00013.17
7.3.320.0000.00513.10
7.3.310.0000.00716.20
7.3.300.0000.00716.34
7.3.290.0090.00716.38
7.3.280.0080.00816.34
7.3.270.0120.00617.40
7.3.260.0050.01216.59
7.3.250.0110.00716.39
7.3.240.0090.01016.41
7.3.230.0070.01416.60
7.3.210.0060.01016.58
7.3.200.0100.00716.21
7.3.190.0130.00316.45
7.3.180.0080.00816.32
7.3.170.0100.00716.52
7.3.160.0040.01216.42
7.3.10.0100.00716.57
7.3.00.0200.00516.49
7.2.330.0080.01116.75
7.2.320.0100.01016.73
7.2.310.0100.00616.76
7.2.300.0060.01316.61
7.2.290.0030.02016.66
7.2.130.0220.00616.61
7.2.120.0100.00617.02
7.2.110.0210.00416.54
7.2.100.0100.00716.85
7.2.90.0280.00316.48
7.2.80.0120.00916.65
7.2.70.0180.00516.63
7.2.60.0110.00916.96
7.2.50.0180.01116.79
7.2.40.0200.00316.48
7.2.30.0130.01316.46
7.2.20.0330.01116.48
7.2.10.0120.00916.61
7.2.00.0030.01416.96
7.1.250.0060.00615.35
7.1.200.0060.00615.75
7.1.70.0020.01717.23
7.1.60.0190.01635.38
7.1.50.0150.01535.03
7.1.40.0160.01534.70
7.1.30.0130.02234.75
7.1.20.0250.00734.87
7.1.10.0040.01316.97
7.1.00.0030.01316.83
7.0.200.0120.00317.01
7.0.190.0060.01616.68
7.0.180.0050.01316.48
7.0.170.0000.01816.35
7.0.160.0060.01116.65
7.0.150.0070.00716.48
7.0.140.0120.00416.59
7.0.130.0050.01316.60
7.0.120.0000.01816.68
7.0.110.0090.00916.43
7.0.100.0110.00416.39
7.0.90.0030.01616.48
7.0.80.0060.01216.43
7.0.70.0090.00916.23
7.0.60.0030.01516.46
7.0.50.0100.00916.61
7.0.40.0070.01416.82
7.0.30.0080.01016.90
7.0.20.0080.01116.64
7.0.10.0090.01016.63
7.0.00.0080.01116.70

preferences:
34.59 ms | 400 KiB | 5 Q