3v4l.org

run code in 300+ PHP versions simultaneously
<?php $foo = 'http://google.com?omg=wtf'; echo preg_replace('/(http|https):\/\/(google.com)/is', 'https://$2', $foo);

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.0110.01118.30
8.3.50.0130.00521.99
8.3.40.0040.01118.75
8.3.30.0110.00319.01
8.3.20.0040.00420.13
8.3.10.0080.00022.09
8.3.00.0040.00422.34
8.2.180.0130.00316.88
8.2.170.0090.00622.96
8.2.160.0040.01120.78
8.2.150.0050.00324.18
8.2.140.0080.00024.66
8.2.130.0080.00026.16
8.2.120.0000.00819.61
8.2.110.0030.00622.08
8.2.100.0070.00419.77
8.2.90.0050.00319.23
8.2.80.0000.00817.97
8.2.70.0030.00517.75
8.2.60.0080.00017.80
8.2.50.0060.00318.07
8.2.40.0000.00819.97
8.2.30.0070.00018.08
8.2.20.0070.00017.79
8.2.10.0000.00819.62
8.2.00.0000.00717.64
8.1.280.0070.00725.92
8.1.270.0040.00422.19
8.1.260.0000.00726.35
8.1.250.0000.00728.09
8.1.240.0040.00423.96
8.1.230.0070.00419.01
8.1.220.0000.00817.74
8.1.210.0000.00818.77
8.1.200.0090.00317.23
8.1.190.0050.00317.38
8.1.180.0000.00818.63
8.1.170.0000.00818.64
8.1.160.0050.00322.00
8.1.150.0040.00418.72
8.1.140.0000.00717.55
8.1.130.0000.00717.69
8.1.120.0000.00717.62
8.1.110.0000.00817.39
8.1.100.0030.00317.58
8.1.90.0000.00717.52
8.1.80.0050.00317.48
8.1.70.0070.00017.51
8.1.60.0030.00617.69
8.1.50.0040.00417.57
8.1.40.0000.00717.60
8.1.30.0060.00317.77
8.1.20.0000.00817.66
8.1.10.0040.00417.58
8.1.00.0030.00617.68
8.0.300.0040.00418.77
8.0.290.0050.00217.18
8.0.280.0000.00718.38
8.0.270.0040.00417.17
8.0.260.0030.00316.94
8.0.250.0000.00617.10
8.0.240.0050.00317.02
8.0.230.0100.00016.95
8.0.220.0000.00617.02
8.0.210.0030.00316.98
8.0.200.0000.00717.02
8.0.190.0040.00417.07
8.0.180.0000.00716.90
8.0.170.0030.00617.00
8.0.160.0030.00516.92
8.0.150.0070.00016.96
8.0.140.0070.00016.98
8.0.130.0000.00613.38
8.0.120.0000.00816.84
8.0.110.0040.00416.91
8.0.100.0070.00017.04
8.0.90.0040.00417.01
8.0.80.0100.00316.98
8.0.70.0080.00017.01
8.0.60.0040.00416.87
8.0.50.0050.00316.86
8.0.30.0120.00617.15
8.0.20.0140.00517.40
8.0.10.0040.00417.04
8.0.00.0130.00816.79
7.4.330.0020.00215.00
7.4.320.0060.00016.61
7.4.300.0060.00016.68
7.4.290.0030.00316.75
7.4.280.0050.00316.73
7.4.270.0080.00016.80
7.4.260.0040.00416.76
7.4.250.0040.00416.73
7.4.240.0030.00416.71
7.4.230.0070.00016.82
7.4.220.0070.01116.80
7.4.210.0050.00916.84
7.4.200.0070.00016.84
7.4.190.0030.00316.89
7.4.160.0110.00716.50
7.4.150.0170.00717.40
7.4.140.0080.01217.86
7.4.130.0080.00916.66
7.4.120.0140.00816.60
7.4.110.0100.00716.75
7.4.100.0100.00616.81
7.4.90.0130.01016.64
7.4.80.0100.00719.39
7.4.70.0100.00616.58
7.4.60.0030.01616.77
7.4.50.0030.00316.68
7.4.40.0070.01122.77
7.4.30.0000.01716.59
7.4.00.0030.01315.10
7.3.330.0030.00313.22
7.3.320.0050.00013.18
7.3.310.0000.00716.38
7.3.300.0000.00816.11
7.3.290.0090.00916.29
7.3.280.0090.00916.26
7.3.270.0140.00317.40
7.3.260.0150.00316.54
7.3.250.0120.00516.55
7.3.240.0150.00616.26
7.3.230.0100.00716.43
7.3.210.0030.01616.49
7.3.200.0030.01419.39
7.3.190.0070.01416.52
7.3.180.0030.01316.40
7.3.170.0100.00716.30
7.3.160.0110.00416.50
7.3.120.0090.00614.86
7.3.110.0140.00015.05
7.3.100.0070.00714.84
7.3.90.0060.00614.90
7.3.80.0100.00614.91
7.3.70.0000.00915.05
7.3.60.0000.01414.77
7.3.50.0090.00614.73
7.3.40.0040.01115.03
7.3.30.0040.01114.70
7.3.20.0100.00316.63
7.3.10.0040.00816.80
7.3.00.0000.01116.70
7.2.330.0110.00916.64
7.2.320.0090.00916.70
7.2.310.0070.01016.61
7.2.300.0030.01716.59
7.2.290.0120.00616.62
7.2.240.0000.01114.96
7.2.230.0060.00615.08
7.2.220.0030.01415.08
7.2.210.0170.00015.03
7.2.200.0100.00714.70
7.2.190.0100.00714.91
7.2.180.0090.00315.12
7.2.170.0090.00314.75
7.2.160.0000.01614.90
7.2.150.0040.01216.95
7.2.140.0030.01417.09
7.2.130.0080.00816.95
7.2.120.0070.00416.98
7.2.110.0060.01216.64
7.2.100.0040.01117.11
7.2.90.0030.01016.89
7.2.80.0090.00617.04
7.2.70.0120.00316.98
7.2.60.0080.00816.96
7.2.50.0040.01117.02
7.2.40.0030.01317.02
7.2.30.0040.00716.97
7.2.20.0130.00316.99
7.2.10.0000.01516.98
7.2.00.0050.00917.90
7.1.330.0070.00716.01
7.1.320.0070.00716.13
7.1.310.0070.00315.75
7.1.300.0040.01116.11
7.1.290.0090.00315.82
7.1.280.0060.00915.86
7.1.270.0060.00615.89
7.1.260.0090.00615.87
7.1.250.0000.01515.99
7.1.200.0070.00715.73
7.1.100.0040.00718.26
7.1.70.0000.00717.34
7.1.60.0100.00719.82
7.1.50.0070.00717.07
7.1.00.0030.07722.46
7.0.200.0030.01016.70
7.0.140.0070.07022.08
7.0.60.0030.08019.94
7.0.50.0000.04017.92
7.0.40.0130.08020.32
7.0.30.0270.07720.20
7.0.20.0170.04720.19
7.0.10.0200.05020.20
7.0.00.0000.09020.18
5.6.280.0070.07020.81
5.6.210.0070.08020.55
5.6.200.0000.09018.11
5.6.190.0100.07720.61
5.6.180.0200.08320.61
5.6.170.0270.07020.47
5.6.160.0070.06320.49
5.6.150.0070.06018.18
5.6.140.0200.06718.09
5.6.130.0030.04318.07
5.6.120.0070.08721.00
5.6.110.0000.04321.01
5.6.100.0070.08720.96
5.6.90.0070.06021.07
5.6.80.0100.07320.43
5.6.70.3870.04320.36
5.5.350.0270.07720.42
5.5.340.0070.07717.99
5.5.330.0030.04720.57
5.5.320.0170.07720.25
5.5.310.0270.07720.24
5.5.300.0030.04718.02
5.5.290.0200.07018.02
5.5.280.0070.08020.67
5.5.270.0070.04020.71
5.5.260.0100.07020.96
5.5.250.0070.08020.70
5.5.240.0070.08020.34
5.4.450.0800.05019.48
5.4.440.0700.06019.21
5.4.430.0100.06319.44
5.4.420.0130.06019.35
5.4.410.0200.04319.00
5.4.400.0300.05318.78
5.4.390.0370.06318.73
5.4.380.0300.04318.70
5.4.370.0270.05018.45
5.4.360.0200.05718.61
5.4.350.0110.03611.97
5.4.340.0070.03711.97
5.4.320.0090.03812.45
5.4.310.0040.03812.45
5.4.300.0040.04112.45
5.4.290.0040.03912.45
5.4.280.0060.03412.35
5.4.270.0060.04012.35
5.4.260.0030.05718.91
5.4.250.0130.04718.74
5.4.240.0100.07018.90
5.4.230.0070.05318.93
5.4.220.0070.05718.90
5.4.210.0100.06318.75
5.4.200.0170.06018.82
5.4.190.0000.05719.05
5.4.180.0000.06018.94
5.4.170.0170.05718.72
5.4.160.0100.05018.66
5.4.150.0070.07318.98
5.4.140.0030.08316.42
5.4.130.0100.04716.21
5.4.120.0030.05316.43
5.4.110.0030.05716.43
5.4.100.0070.06716.45
5.4.90.0100.04716.29
5.4.80.0070.05316.25
5.4.70.0100.04716.27
5.4.60.0100.04716.46
5.4.50.0070.04716.50
5.4.40.0070.06716.54
5.4.30.0070.05716.36
5.4.20.0130.04716.38
5.4.10.0170.06316.17
5.4.00.0200.04015.98
5.3.290.0040.04512.80
5.3.280.0100.04714.29
5.3.270.0070.07014.61
5.3.260.0030.05714.60
5.3.250.0100.04714.60
5.3.240.0100.05314.46
5.3.230.0100.04714.48
5.3.220.0170.06014.57
5.3.210.0070.05314.71
5.3.200.0200.04014.65
5.3.190.0130.04714.57
5.3.180.0170.04014.57
5.3.170.0130.05314.62
5.3.160.0070.05314.41
5.3.150.0130.07014.33
5.3.140.0130.05314.40
5.3.130.0070.06314.56
5.3.120.0000.06314.54
5.3.110.0000.06014.54
5.3.100.0130.04313.92
5.3.90.0030.07713.90
5.3.80.0130.05014.01
5.3.70.0070.07014.06
5.3.60.0130.04713.87
5.3.50.0070.05013.83
5.3.40.0100.06713.99
5.3.30.0070.06013.84
5.3.20.0100.04313.69
5.3.10.0200.03313.67
5.3.00.0100.05013.52
5.2.170.0030.04311.05
5.2.160.0070.03711.13
5.2.150.0070.06011.13
5.2.140.0070.04011.23
5.2.130.0100.03311.02
5.2.120.0000.05011.11
5.2.110.0070.03711.00
5.2.100.0170.03011.11
5.2.90.0070.05011.09
5.2.80.0000.05011.18
5.2.70.0130.03311.09
5.2.60.0100.04011.14
5.2.50.0030.04010.85
5.2.40.0100.04711.15
5.2.30.0000.05011.07
5.2.20.0100.05010.89
5.2.10.0200.04010.96
5.2.00.0170.03010.71
5.1.60.0030.03710.05
5.1.50.0030.0339.90
5.1.40.0000.05310.03
5.1.30.0030.03710.40
5.1.20.0070.03710.44
5.1.10.0000.04010.11
5.1.00.0170.04010.02
5.0.50.0000.0308.63
5.0.40.0030.0308.29
5.0.30.0070.0578.27
5.0.20.0070.0338.16
5.0.10.0000.0308.31
5.0.00.0000.0438.11
4.4.90.0100.0137.07
4.4.80.0070.0277.07
4.4.70.0100.0177.07
4.4.60.0030.0207.07
4.4.50.0000.0237.07
4.4.40.0030.0477.07
4.4.30.0070.0207.07
4.4.20.0100.0277.07
4.4.10.0000.0237.07
4.4.00.0000.0337.07
4.3.110.0100.0137.07
4.3.100.0000.0237.07
4.3.90.0000.0237.07
4.3.80.0000.0337.07
4.3.70.0000.0337.07
4.3.60.0000.0277.07
4.3.50.0000.0277.07
4.3.40.0100.0307.07
4.3.30.0000.0307.07
4.3.20.0030.0207.07
4.3.10.0030.0207.07
4.3.00.0070.01714.49

preferences:
44.86 ms | 401 KiB | 5 Q