3v4l.org

run code in 300+ PHP versions simultaneously
<?php $pattern = array("/cash-equivalents_quarterly/" , "/total-assets_quarterly/"); $replace_data["cash-equivalents_quarterly"] = 169677928570; $replace_data["total-assets_quarterly"] = 222617965672000000000; $formula["1"] = " cash-equivalents_quarterly / total-assets_quarterly"; $amount1 = preg_replace($pattern,$replace_data,$formula["1"]); var_dump($amount1);

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.4.120.0090.00720.48
8.4.110.0120.00818.75
8.4.100.0120.00918.02
8.4.90.0050.00418.55
8.4.80.0050.00417.89
8.4.70.0100.01018.03
8.4.60.0100.00718.80
8.4.50.0110.00917.78
8.4.40.0070.01319.34
8.4.30.0060.00317.73
8.4.20.0130.00717.84
8.4.10.0030.00619.58
8.3.250.0110.00918.97
8.3.240.0110.00816.53
8.3.230.0100.01016.64
8.3.220.0100.00817.10
8.3.210.0050.00316.50
8.3.200.0110.00816.84
8.3.190.0140.00418.33
8.3.180.0040.00416.61
8.3.170.0140.00418.92
8.3.160.0150.00320.25
8.3.150.0130.00717.04
8.3.140.0040.00418.49
8.3.130.0000.01018.60
8.3.120.0030.00620.65
8.3.110.0000.00716.60
8.3.100.0060.00324.06
8.3.90.0040.00426.77
8.3.80.0070.00317.97
8.3.70.0110.01118.39
8.3.60.0160.00016.75
8.3.50.0320.00522.05
8.3.40.0110.00418.79
8.3.30.0110.00319.02
8.3.20.0040.00420.34
8.3.10.0080.00023.43
8.3.00.0000.00722.34
8.2.290.0110.00820.34
8.2.280.0080.00318.47
8.2.270.0060.00316.98
8.2.260.0120.00618.67
8.2.250.0000.00816.82
8.2.240.0080.00019.09
8.2.230.0030.00720.94
8.2.220.0060.00337.54
8.2.210.0050.00326.77
8.2.200.0040.00416.63
8.2.190.0080.00818.79
8.2.180.0180.00416.88
8.2.170.0100.01022.96
8.2.160.0050.00919.38
8.2.150.0000.00724.18
8.2.140.0130.00624.66
8.2.130.0080.00022.21
8.2.120.0040.00426.35
8.2.110.0090.00020.47
8.2.100.0110.00018.03
8.2.90.0000.00819.26
8.2.80.0090.00317.97
8.2.70.0040.00417.75
8.2.60.0120.00017.80
8.2.50.0040.00418.10
8.2.40.0000.00822.15
8.2.30.0070.00019.27
8.2.20.0070.00017.72
8.2.10.0040.00418.00
8.2.00.0000.00717.77
8.1.330.0110.00821.72
8.1.320.0150.00416.41
8.1.310.0140.00018.41
8.1.300.0090.00018.06
8.1.290.0070.00330.84
8.1.280.0120.00925.92
8.1.270.0090.00023.99
8.1.260.0030.00628.09
8.1.250.0040.00428.09
8.1.240.0000.00923.92
8.1.230.0080.00417.80
8.1.220.0050.00317.74
8.1.210.0030.00518.77
8.1.200.0050.00517.48
8.1.190.0030.00617.48
8.1.180.0040.00418.10
8.1.170.0060.00320.56
8.1.160.0040.00422.23
8.1.150.0000.00718.72
8.1.140.0050.00219.54
8.1.130.0040.00417.57
8.1.120.0000.00717.39
8.1.110.0060.00317.42
8.1.100.0000.00917.61
8.1.90.0050.00317.57
8.1.80.0000.00717.58
8.1.70.0000.00717.45
8.1.60.0040.00417.54
8.1.50.0000.00917.60
8.1.40.0070.00317.61
8.1.30.0000.00817.79
8.1.20.0000.00717.78
8.1.10.0040.00417.61
8.1.00.0000.00717.63
8.0.300.0040.00418.77
8.0.290.0040.00416.75
8.0.280.0000.00718.40
8.0.270.0000.00717.18
8.0.260.0000.00617.30
8.0.250.0000.00716.91
8.0.240.0070.00017.08
8.0.230.0020.00517.08
8.0.220.0070.00017.00
8.0.210.0040.00416.87
8.0.200.0000.00717.04
8.0.190.0040.00416.90
8.0.180.0040.00416.96
8.0.170.0050.00317.04
8.0.160.0070.00016.94
8.0.150.0070.00016.93
8.0.140.0060.00316.98
8.0.130.0030.00313.43
8.0.120.0040.00416.85
8.0.110.0040.00416.94
8.0.100.0070.00016.81
8.0.90.0000.00816.95
8.0.80.0110.00417.01
8.0.70.0070.00016.81
8.0.60.0070.00017.08
8.0.50.0040.00416.94
8.0.30.0070.01317.34
8.0.20.0110.00817.40
8.0.10.0030.00516.98
8.0.00.0130.00316.79
7.4.330.0000.00815.08
7.4.320.0030.00316.77
7.4.300.0000.00616.80
7.4.290.0000.00716.69
7.4.280.0080.00416.60
7.4.270.0040.00416.71
7.4.260.0040.00416.56
7.4.250.0070.00016.64
7.4.240.0040.00416.86
7.4.230.0000.00716.50
7.4.220.0100.01016.61
7.4.210.0030.01316.58
7.4.200.0030.00316.86
7.4.160.0070.00916.58
7.4.150.0110.00717.40
7.4.140.0130.00517.86
7.4.130.0080.00916.57
7.4.120.0110.00716.75
7.4.110.0140.00316.79
7.4.100.0130.00316.65
7.4.90.0100.01016.98
7.4.80.0100.00619.39
7.4.70.0070.01016.73
7.4.60.0120.00616.54
7.4.50.0070.01016.61
7.4.40.0160.00016.45
7.4.30.0060.01116.66
7.4.00.0070.00714.94
7.3.330.0050.00013.09
7.3.320.0000.00513.27
7.3.310.0030.00316.40
7.3.300.0030.00316.43
7.3.290.0050.01016.48
7.3.280.0120.00816.42
7.3.270.0070.01017.40
7.3.260.0070.01016.50
7.3.250.0080.00816.58
7.3.240.0080.00816.41
7.3.230.0100.01416.67
7.3.210.0060.01016.79
7.3.200.0090.00916.32
7.3.190.0160.00616.26
7.3.180.0160.00716.68
7.3.170.0070.01016.48
7.3.160.0130.00916.77
7.2.330.0140.00316.58
7.2.320.0060.01216.45
7.2.310.0080.00816.70
7.2.300.0070.01016.64
7.2.290.0040.01416.98
7.2.60.0040.01217.03
7.2.00.0100.00319.49
7.1.200.0080.00415.98
7.1.70.0040.00417.06
7.1.60.0120.00217.30
7.1.00.0130.06722.42
7.0.200.0070.00314.93
7.0.100.0070.06320.12
7.0.90.0070.06019.98
7.0.80.0100.05319.88
7.0.70.0100.05319.91
7.0.60.0100.07720.13
7.0.50.0030.06020.46
7.0.40.0070.05720.45
7.0.30.0100.05720.39
7.0.20.0070.06020.39
7.0.10.0070.05720.29
7.0.00.0130.05320.37
5.6.250.0170.05320.87
5.6.240.0170.05020.63
5.6.230.0170.05020.69
5.6.220.0100.05320.61
5.6.210.0270.06020.55
5.6.200.0130.07021.11
5.6.190.0030.06021.09
5.6.180.0030.06021.01
5.6.170.0100.05321.07
5.6.160.0130.05321.13
5.6.150.0130.05021.06
5.6.140.0130.04721.07
5.6.130.0270.04021.13
5.6.120.0070.06021.05
5.6.110.0130.05321.19
5.6.100.0070.05721.15
5.6.90.0070.06021.11
5.6.80.0170.05320.53
5.6.70.0130.05020.39
5.6.60.0070.05320.42
5.6.50.0070.05320.55
5.6.40.0100.05320.55
5.6.30.0130.05320.44
5.6.20.0130.04720.52
5.6.10.0200.04020.40
5.6.00.0000.06320.41

preferences:
28.71 ms | 403 KiB | 5 Q