3v4l.org

run code in 300+ PHP versions simultaneously
<?php $txt = "car -12 and dog 3.1416 and cat 98 and 4,12 and flowers = 0.1 and -75"; echo "EXPECT: car NUM and dog NUM and cat NUM and NUM and flowers = NUM and NUM\n"; echo "OUTPUT: ",preg_replace('~-?\d*[,.]?\d+~','NUM',$txt);

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.5.30.0090.01017.41
8.5.20.0130.00819.62
8.5.10.0090.00816.72
8.5.00.0210.01119.78
8.4.180.0160.01121.98
8.4.170.0090.01420.51
8.4.160.0140.00823.95
8.4.150.0060.00616.94
8.4.140.0110.01017.85
8.4.130.0140.00619.11
8.4.120.0090.00324.14
8.4.110.0110.01022.71
8.4.100.0060.01018.06
8.4.90.0130.00818.56
8.4.80.0140.00618.10
8.4.70.0060.00418.26
8.4.60.0090.01018.75
8.4.50.0050.01117.86
8.4.40.0130.00618.09
8.4.30.0100.01019.75
8.4.20.0100.01019.71
8.4.10.0070.00319.55
8.3.300.0130.00820.92
8.3.290.0130.00920.72
8.3.280.0090.01218.47
8.3.270.0090.01216.66
8.3.260.0080.01016.62
8.3.250.0110.00719.04
8.3.240.0120.00616.77
8.3.230.0100.00916.97
8.3.220.0090.00817.16
8.3.210.0090.00816.56
8.3.200.0060.00316.52
8.3.190.0110.00916.82
8.3.180.0110.00816.64
8.3.170.0080.00416.77
8.3.160.0070.01116.63
8.3.150.0090.00617.38
8.3.140.0050.00316.72
8.3.130.0040.00418.13
8.3.120.0000.00820.64
8.3.110.0030.00620.94
8.3.100.0040.00824.06
8.3.90.0040.00426.77
8.3.80.0060.00318.68
8.3.70.0110.01116.50
8.3.60.0150.00018.43
8.3.50.0100.00718.32
8.3.40.0090.00618.92
8.3.30.0090.00618.97
8.3.20.0080.00021.90
8.3.10.0050.00323.78
8.3.00.0030.00622.05
8.2.300.0130.00623.87
8.2.290.0040.00520.43
8.2.280.0110.00718.54
8.2.270.0160.00317.17
8.2.260.0080.00016.75
8.2.250.0060.00318.73
8.2.240.0060.00317.14
8.2.230.0000.00722.58
8.2.220.0030.00637.54
8.2.210.0080.00026.77
8.2.200.0060.00317.13
8.2.190.0110.00416.63
8.2.180.0120.00316.62
8.2.170.0120.00622.96
8.2.160.0030.01022.08
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0040.00421.02
8.2.120.0040.00426.35
8.2.110.0090.00019.14
8.2.100.0060.00617.84
8.2.90.0040.00417.97
8.2.80.0030.00618.04
8.2.70.0060.00318.03
8.2.60.0040.00417.75
8.2.50.0000.00818.10
8.2.40.0030.00520.42
8.2.30.0000.00720.55
8.2.20.0020.00518.04
8.2.10.0000.00818.06
8.2.00.0050.00317.96
8.1.340.0120.00817.78
8.1.330.0140.00621.92
8.1.320.0110.00716.18
8.1.310.0160.00316.79
8.1.300.0000.00818.30
8.1.290.0050.00530.84
8.1.280.0140.00325.92
8.1.270.0080.00022.11
8.1.260.0080.00026.35
8.1.250.0070.00028.09
8.1.240.0060.00323.91
8.1.230.0040.00720.89
8.1.220.0030.00517.89
8.1.210.0080.00018.77
8.1.200.0030.00617.35
8.1.190.0030.00717.00
8.1.180.0030.00518.10
8.1.170.0030.00518.59
8.1.160.0000.00718.91
8.1.150.0040.00418.77
8.1.140.0000.00717.58
8.1.130.0030.00319.00
8.1.120.0060.00317.63
8.1.110.0000.00817.47
8.1.100.0040.00417.57
8.1.90.0040.00417.55
8.1.80.0000.00717.55
8.1.70.0000.00717.36
8.1.60.0040.00417.64
8.1.50.0090.00017.64
8.1.40.0080.00017.59
8.1.30.0030.00617.70
8.1.20.0040.00417.56
8.1.10.0000.00717.63
8.1.00.0050.00317.61
8.0.300.0070.00020.02
8.0.290.0040.00417.00
8.0.280.0000.00718.41
8.0.270.0030.00317.14
8.0.260.0030.00316.94
8.0.250.0000.00717.11
8.0.240.0000.00717.08
8.0.230.0060.00317.00
8.0.220.0050.00217.00
8.0.210.0040.00416.89
8.0.200.0000.00717.04
8.0.190.0040.00417.05
8.0.180.0070.00417.04
8.0.170.0000.00816.96
8.0.160.0050.00316.86
8.0.150.0070.00016.89
8.0.140.0000.00816.83
8.0.130.0000.00513.41
8.0.120.0000.00717.02
8.0.110.0000.00716.94
8.0.100.0040.00417.04
8.0.90.0040.00416.93
8.0.80.0090.01217.07
8.0.70.0000.00816.86
8.0.60.0040.00417.04
8.0.50.0000.00716.86
8.0.30.0120.01017.22
8.0.20.0080.01017.40
8.0.10.0040.00417.21
8.0.00.0090.01216.93
7.4.330.0050.00015.55
7.4.320.0000.00616.72
7.4.300.0000.00616.73
7.4.290.0040.00416.61
7.4.280.0060.00316.70
7.4.270.0000.00716.78
7.4.260.0030.00316.81
7.4.250.0070.00016.79
7.4.240.0040.00416.80
7.4.230.0000.00716.74
7.4.220.0030.00516.54
7.4.210.0030.01016.75
7.4.200.0000.00716.70
7.4.160.0080.01216.61
7.4.140.0100.00817.86
7.4.130.0100.01016.56
7.4.120.0070.01216.65
7.4.110.0150.00416.70
7.4.100.0120.00916.61
7.4.90.0110.01116.69
7.4.80.0050.01119.39
7.4.70.0140.00616.60
7.4.60.0140.00316.57
7.4.50.0030.01416.70
7.4.40.0070.01016.75
7.4.00.0050.01415.04
7.3.330.0000.00513.10
7.3.320.0000.00613.19
7.3.310.0000.00716.25
7.3.300.0070.00016.18
7.3.290.0050.01116.31
7.3.280.0100.00716.36
7.3.260.0170.00316.38
7.3.240.0100.00816.44
7.3.230.0120.00616.27
7.3.210.0130.00616.16
7.3.200.0130.00716.66
7.3.190.0130.01016.54
7.3.180.0120.00316.38
7.3.170.0060.01616.61
7.3.160.0070.00916.59
7.3.120.0060.00615.19
7.3.110.0070.01114.80
7.3.100.0040.00814.82
7.3.90.0070.00714.77
7.3.80.0090.00615.07
7.3.70.0040.01414.95
7.3.60.0060.00315.00
7.3.50.0030.01214.67
7.3.40.0000.01214.90
7.3.30.0030.00714.55
7.3.20.0030.01016.79
7.3.10.0070.00716.53
7.3.00.0100.00616.55
7.2.330.0110.00716.41
7.2.320.0120.00416.73
7.2.310.0100.00616.66
7.2.300.0060.00916.74
7.2.290.0090.00916.50
7.2.250.0070.01115.24
7.2.240.0030.01414.95
7.2.230.0090.00315.12
7.2.220.0040.00815.00
7.2.210.0030.01415.04
7.2.200.0100.00914.93
7.2.190.0030.01015.20
7.2.180.0060.01015.09
7.2.170.0060.01215.11
7.2.130.0090.00616.71
7.2.120.0070.01016.87
7.2.110.0080.00816.86
7.2.100.0100.00716.78
7.2.90.0040.01517.03
7.2.80.0170.00716.65
7.2.70.0130.01016.98
7.2.60.0100.00716.79
7.2.50.0030.00916.90
7.2.40.0160.00017.14
7.2.30.0100.01118.27
7.2.20.0100.01118.42
7.2.10.0060.01418.29
7.2.00.0100.01118.42
7.1.330.0000.01515.84
7.1.320.0060.00915.82
7.1.310.0150.00015.76
7.1.300.0100.00315.79
7.1.290.0040.01115.84
7.1.280.0040.01515.74
7.1.270.0040.00815.91
7.1.260.0040.01115.84
7.1.250.0070.00715.79
7.1.200.0030.00815.63
7.1.150.0110.01118.88
7.1.140.0070.01619.01
7.1.130.0070.01518.86
7.1.120.0070.01618.77
7.1.110.0050.01118.05
7.1.100.0080.01418.44
7.1.90.0120.00717.73
7.1.80.0090.00718.14
7.1.70.0060.01017.14
7.1.60.0240.01135.05
7.1.50.0350.01434.74
7.1.40.0300.01434.48
7.1.30.0290.01834.75
7.1.20.0270.01834.60
7.1.10.0100.01216.64
7.1.00.0070.01416.77

preferences:
48.17 ms | 1595 KiB | 5 Q