3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = "Hello! 123 test this? 456. done? 100%"; $int = intval(preg_replace('/test/ /[^0-9]+/', '', $string), 10); echo $int;

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.0040.01118.43
8.3.50.0110.01116.01
8.3.40.0170.00318.58
8.3.30.0090.00618.66
8.3.20.0050.00318.92
8.3.10.0030.00520.64
8.3.00.0000.00823.61
8.2.180.0130.00316.75
8.2.170.0090.00622.96
8.2.160.0100.00320.34
8.2.150.0000.00824.18
8.2.140.0000.00824.66
8.2.130.0040.00419.77
8.2.120.0070.00026.35
8.2.110.0060.00320.35
8.2.100.0080.00418.03
8.2.90.0000.00819.10
8.2.80.0000.00917.97
8.2.70.0050.00317.80
8.2.60.0080.00018.04
8.2.50.0000.00818.10
8.2.40.0040.00419.52
8.2.30.0050.00219.41
8.2.20.0040.00418.03
8.2.10.0050.00318.02
8.2.00.0040.00419.57
8.1.280.0040.01125.92
8.1.270.0040.00422.04
8.1.260.0000.00826.35
8.1.250.0080.00028.09
8.1.240.0060.00324.00
8.1.230.0080.00319.48
8.1.220.0040.00417.74
8.1.210.0030.00618.77
8.1.200.0060.00317.23
8.1.190.0000.00817.11
8.1.180.0000.00718.10
8.1.170.0000.00818.50
8.1.160.0000.00818.93
8.1.150.0030.00518.73
8.1.140.0000.00819.29
8.1.130.0080.00020.71
8.1.120.0050.00317.35
8.1.110.0040.00417.37
8.1.100.0000.00817.40
8.1.90.0000.00717.39
8.1.80.0040.00417.45
8.1.70.0040.00417.29
8.1.60.0000.00817.49
8.1.50.0110.00417.33
8.1.40.0080.00017.33
8.1.30.0000.00817.66
8.1.20.0000.00717.58
8.1.10.0000.00717.37
8.1.00.0060.00317.28
8.0.300.0000.00918.77
8.0.290.0080.00016.75
8.0.280.0070.00018.47
8.0.270.0000.00717.12
8.0.260.0000.00617.29
8.0.250.0100.00017.06
8.0.240.0000.00916.99
8.0.230.0030.00516.92
8.0.220.0000.00716.91
8.0.210.0070.00016.77
8.0.200.0070.00016.82
8.0.190.0000.00816.85
8.0.180.0050.00216.86
8.0.170.0030.00616.84
8.0.160.0000.00916.88
8.0.150.0040.00316.82
8.0.140.0000.00716.75
8.0.130.0030.00313.30
8.0.120.0030.00616.83
8.0.110.0040.00416.90
8.0.100.0040.00316.93
8.0.90.0020.00516.84
8.0.80.0060.00916.79
8.0.70.0000.00716.85
8.0.60.0070.00016.73
8.0.50.0050.00316.87
8.0.30.0090.01017.02
8.0.20.0100.01117.40
8.0.10.0050.00216.95
8.0.00.0100.00716.70
7.4.330.0020.00215.55
7.4.320.0030.00316.52
7.4.300.0070.00016.51
7.4.290.0050.00216.41
7.4.280.0050.00216.31
7.4.270.0030.00316.43
7.4.260.0030.00316.52
7.4.250.0080.00016.46
7.4.240.0000.00716.51
7.4.230.0030.00316.63
7.4.220.0050.00316.31
7.4.210.0080.00616.51
7.4.200.0000.00816.60
7.4.160.0060.01216.49
7.4.140.0120.00617.86
7.4.130.0040.01216.25
7.4.120.0050.01416.44
7.4.110.0180.00616.42
7.4.100.0060.00916.61
7.4.90.0130.00316.54
7.4.80.0140.01019.39
7.4.70.0090.00916.44
7.4.60.0070.01016.52
7.4.50.0100.00216.42
7.4.40.0070.01816.38
7.4.00.0050.00914.81
7.3.330.0000.00613.17
7.3.320.0000.00513.18
7.3.310.0040.00416.34
7.3.300.0050.00216.27
7.3.290.0030.00316.20
7.3.280.0130.00516.27
7.3.260.0100.00816.29
7.3.240.0080.01116.37
7.3.230.0150.00616.53
7.3.210.0140.00416.48
7.3.200.0080.00816.20
7.3.190.0080.00816.59
7.3.180.0100.00716.45
7.3.170.0030.01316.35
7.3.160.0140.00316.43
7.3.120.0070.01114.43
7.3.110.0110.00714.68
7.3.100.0080.00414.83
7.3.90.0050.00414.62
7.3.80.0000.00814.39
7.3.70.0080.00014.66
7.3.60.0000.01314.70
7.3.50.0030.01214.50
7.3.40.0070.00314.64
7.3.30.0060.00614.62
7.3.20.0120.00316.61
7.3.10.0030.01116.71
7.3.00.0040.00816.51
7.2.330.0090.00916.35
7.2.320.0180.00316.66
7.2.310.0090.00916.67
7.2.300.0080.00816.20
7.2.290.0060.01516.62
7.2.250.0070.01014.41
7.2.240.0180.00315.05
7.2.230.0070.00715.17
7.2.220.0040.01114.86
7.2.210.0040.00814.93
7.2.200.0060.00615.02
7.2.190.0030.01214.71
7.2.180.0060.00315.04
7.2.170.0040.00814.75
7.2.60.0110.01114.79
7.2.50.0070.01414.82
7.2.40.0130.01014.77
7.2.30.0220.01014.81
7.2.20.0190.01114.80
7.2.10.0220.01114.84
7.2.00.0160.00914.62
7.1.330.0070.00715.46
7.1.320.0040.00815.93
7.1.310.0000.01315.45
7.1.300.0040.00715.71
7.1.290.0090.00615.49
7.1.280.0070.00715.61
7.1.270.0030.01015.74
7.1.260.0090.00315.48
7.1.200.0030.00615.45
7.1.170.0150.00613.76
7.1.160.0150.00613.71
7.1.150.0200.01013.78
7.1.140.0190.01213.90
7.1.130.1000.01013.51
7.1.120.0090.01213.66
7.1.110.0180.00313.74
7.1.100.0190.01013.93
7.1.90.0160.00713.51
7.1.80.0150.00613.45
7.1.70.0190.00313.95
7.1.60.0330.01031.81
7.1.50.0410.00331.31
7.1.40.0400.00331.87
7.1.30.0380.00931.64
7.1.20.0400.00331.71
7.1.10.0210.00313.35
7.1.00.0090.01313.95

preferences:
60.99 ms | 400 KiB | 5 Q