3v4l.org

run code in 300+ PHP versions simultaneously
<?php //this code will append a &mobileapp to every https://example.com url and http://foobar.com url ob_start(function($buffer){ $append = 'mobileapp'; $domain = '(?:'.preg_quote('example.com/~hillybilly', '/') .'|'. '(?.*?\.)?'.preg_quote('foobar.com', '/') .')'; $regex = '/\b(https?:\/\/'.$domain .'\/?)([a-z0-9\._\/~%\-\+&\#!=\(\)@]*)?([?])?([a-z0-9\._\/~%\-\+&\#!=\(\)@]*)?/igm'; $buffer = preg_replace($regex, '$1$2?'.$append.'&$4', $buffer); return $buffer; }); ?> http://foobar.com http://www.example.com/~hillybilly/foobar.php silly silly ob_end_flush();

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.00418.43
8.3.50.0120.00821.21
8.3.40.0110.00818.61
8.3.30.0100.00720.29
8.3.20.0070.00020.33
8.3.10.0040.00422.10
8.3.00.0030.00522.40
8.2.180.0110.01116.59
8.2.170.0060.00922.96
8.2.160.0070.00722.13
8.2.150.0080.00024.18
8.2.140.0070.00024.66
8.2.130.0040.01126.16
8.2.120.0040.00420.94
8.2.110.0030.00620.52
8.2.100.0070.00417.86
8.2.90.0000.00819.18
8.2.80.0060.00319.39
8.2.70.0000.00917.63
8.2.60.0050.00318.03
8.2.50.0000.01218.07
8.2.40.0090.00018.14
8.2.30.0050.00219.54
8.2.20.0040.00417.66
8.2.10.0040.00417.72
8.2.00.0040.00417.67
8.1.280.0120.00325.92
8.1.270.0100.00323.99
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0120.00623.73
8.1.230.0080.00322.25
8.1.220.0000.00817.74
8.1.210.0000.00818.77
8.1.200.0070.00317.50
8.1.190.0000.00817.55
8.1.180.0050.00319.01
8.1.170.0040.00418.66
8.1.160.0080.00020.73
8.1.150.0030.00618.65
8.1.140.0070.00017.35
8.1.130.0040.00417.83
8.1.120.0000.00717.50
8.1.110.0040.00417.41
8.1.100.0000.00717.49
8.1.90.0040.00417.52
8.1.80.0000.00717.50
8.1.70.0000.00717.46
8.1.60.0000.00817.67
8.1.50.0000.00717.43
8.1.40.0030.00617.60
8.1.30.0020.00517.62
8.1.20.0030.00617.58
8.1.10.0070.00017.54
8.1.00.0070.00017.46
8.0.300.0040.00418.77
8.0.290.0000.00717.05
8.0.280.0070.00018.46
8.0.270.0070.00017.14
8.0.260.0030.00316.91
8.0.250.0000.00817.02
8.0.240.0000.00916.98
8.0.230.0000.00717.04
8.0.220.0000.00716.83
8.0.210.0030.00516.97
8.0.200.0000.00616.88
8.0.190.0000.00817.05
8.0.180.0050.00216.98
8.0.170.0040.00416.98
8.0.160.0000.00816.89
8.0.150.0040.00416.80
8.0.140.0040.00316.83
8.0.130.0000.00513.45
8.0.120.0060.00316.90
8.0.110.0070.00016.85
8.0.100.0050.00316.79
8.0.90.0040.00417.01
8.0.80.0090.00616.88
8.0.70.0000.00716.91
8.0.60.0040.00416.88
8.0.50.0020.00516.85
8.0.30.0100.00917.24
8.0.20.0130.00517.40
8.0.10.0000.00717.04
8.0.00.0070.01316.84
7.4.330.0050.00015.00
7.4.320.0030.00316.60
7.4.300.0070.00016.60
7.4.290.0030.00316.59
7.4.280.0030.00316.48
7.4.270.0000.00816.41
7.4.260.0080.00013.21
7.4.250.0040.00416.46
7.4.240.0020.00516.52
7.4.230.0000.00716.42
7.4.220.0150.00416.46
7.4.210.0100.00516.60
7.4.200.0040.00416.51
7.4.190.0030.00316.46
7.4.160.0080.00816.66
7.4.150.0140.00417.40
7.4.140.0130.00617.86
7.4.130.0050.01416.57
7.4.120.0090.00816.50
7.4.110.0080.00816.58
7.4.100.0060.01216.54
7.4.90.0130.00516.68
7.4.80.0090.00919.39
7.4.70.0120.00916.55
7.4.60.0030.01316.37
7.4.50.0000.00816.71
7.4.40.0070.00722.77
7.4.30.0070.01016.53
7.4.00.0060.00915.23
7.3.330.0030.00313.32
7.3.320.0050.00013.33
7.3.310.0000.00716.39
7.3.300.0030.00316.44
7.3.290.0080.00816.30
7.3.280.0110.00516.35
7.3.270.0090.00917.40
7.3.260.0030.01416.44
7.3.250.0110.00616.37
7.3.240.0090.00916.60
7.3.230.0130.00616.39
7.3.210.0130.00316.50
7.3.200.0120.00319.39
7.3.190.0140.00316.43
7.3.180.0040.01116.50
7.3.170.0090.00616.56
7.3.160.0130.00316.45
7.3.120.0030.01014.58
7.2.330.0120.00616.33
7.2.320.0110.00616.71
7.2.310.0190.00416.40
7.2.300.0060.01016.77
7.2.290.0090.00616.77
7.2.60.0050.00816.59
7.2.00.0040.01419.40
7.1.200.0000.00815.72
7.1.100.0000.01118.34
7.1.70.0070.00017.03
7.1.60.0030.02019.32
7.1.50.0060.01216.85
7.1.00.0100.06022.36
7.0.200.0000.01516.77
7.0.140.0070.07021.95
7.0.80.0100.04319.98
7.0.70.0070.04320.13
7.0.60.0070.04019.96
7.0.50.0070.08320.32
7.0.40.0070.04320.09
7.0.30.0070.04020.18
7.0.20.0030.05020.13
7.0.10.0030.04720.14
7.0.00.0070.04720.12
5.6.280.0100.06721.08
5.6.230.0030.04320.51
5.6.220.0070.06320.74
5.6.210.0030.04020.53
5.6.200.0030.06721.08
5.6.190.0070.04021.05
5.6.180.0070.05321.07
5.6.170.0070.04021.05
5.6.160.0030.04321.07
5.6.150.0070.04021.02
5.6.140.0030.04321.03
5.6.130.0100.05021.04
5.6.120.0030.04720.93
5.6.110.0170.04021.03
5.6.100.0130.05721.03
5.6.90.0030.04320.93
5.6.80.0030.04020.52
5.6.70.0000.04720.35
5.6.60.0070.03720.45
5.6.50.0130.03320.44
5.6.40.0030.08720.48
5.6.30.0000.08720.40
5.6.20.0100.04720.43
5.6.10.0200.06320.29
5.6.00.0030.05720.36
5.5.370.0000.04320.37
5.5.360.0030.05720.41
5.5.350.0070.04720.39
5.5.340.0030.04320.80
5.5.330.0100.03720.91
5.5.320.0030.04320.64
5.5.310.0100.03720.78
5.5.300.0030.04020.92
5.5.290.0100.05020.89
5.5.280.0070.03320.81
5.5.270.0070.06020.79
5.5.260.0000.04320.73
5.5.250.0070.04020.61
5.5.240.0030.04020.27
5.5.230.0000.04720.28
5.5.220.0030.06020.11
5.5.210.0100.03320.28
5.5.200.0100.05320.19
5.5.190.0030.06720.28
5.5.180.0130.06320.27
5.5.160.0070.07720.23
5.5.150.0030.08320.25
5.5.140.0030.05720.16
5.5.130.0100.04320.11
5.5.120.0170.07020.21
5.5.110.0070.07320.24
5.5.100.0100.07719.96
5.5.90.0070.04720.07
5.5.80.0030.05320.07
5.5.70.0270.06720.04
5.5.60.0070.05320.00
5.5.50.0070.07720.10
5.5.40.0100.08019.96
5.5.30.0100.07319.97
5.5.20.0030.08320.09
5.5.10.0070.07020.07
5.5.00.0130.06720.03
5.4.450.0000.04019.36
5.4.440.0070.07719.22
5.4.430.0070.05719.55
5.4.420.0000.04719.41
5.4.410.0000.04019.19
5.4.400.0000.04019.09
5.4.390.0070.03319.09
5.4.380.0030.03718.95
5.4.370.0030.04018.93
5.4.360.0030.04019.14
5.4.350.0100.06319.13
5.4.340.0100.07319.13
5.4.320.0030.08319.14
5.4.310.0070.04719.13
5.4.300.0100.06719.12
5.4.290.0070.04719.14
5.4.280.0000.08319.16
5.4.270.0130.07719.20
5.4.260.0100.05019.12
5.4.250.0070.04019.09
5.4.240.0130.04018.89
5.4.230.0070.06319.04
5.4.220.0100.08319.04
5.4.210.0070.07318.98
5.4.200.0030.08019.22
5.4.190.0070.07319.23
5.4.180.0100.06719.04
5.4.170.0100.07718.86
5.4.160.0100.07319.10
5.4.150.0170.06718.82
5.4.140.0030.07316.25
5.4.130.0000.05716.41
5.4.120.0130.06716.43
5.4.110.0030.08316.39
5.4.100.0330.05716.32
5.4.90.0200.05316.51
5.4.80.0130.06716.35
5.4.70.0030.07316.32
5.4.60.0030.07316.31
5.4.50.0130.06716.24
5.4.40.0030.03716.54
5.4.30.0000.04016.33
5.4.20.0070.03316.45
5.4.10.0100.05716.41
5.4.00.0100.07315.78
5.3.290.0170.07014.65
5.3.280.0100.08014.61
5.3.270.0070.07314.54
5.3.260.0030.05314.66
5.3.250.0130.06314.57
5.3.240.0030.07314.63
5.3.230.0070.07314.70
5.3.220.0130.06314.55
5.3.210.0170.06714.58
5.3.200.0100.07314.64
5.3.190.0030.06714.70
5.3.180.0030.05714.67
5.3.170.0170.06314.59
5.3.160.0100.07314.63
5.3.150.0100.07314.54
5.3.140.0000.05014.61
5.3.130.0000.04314.50
5.3.120.0030.06314.57
5.3.110.0100.07014.69
5.3.100.0030.07714.16
5.3.90.0000.05714.12
5.3.80.0100.07014.08
5.3.70.0030.04014.04
5.3.60.0100.07014.13
5.3.50.0030.07714.00
5.3.40.0070.07314.07
5.3.30.0030.05313.81
5.3.20.0130.06313.71
5.3.10.0000.06313.58
5.3.00.0070.06313.53
5.2.170.0030.06311.62
5.2.160.0030.04711.62
5.2.150.0070.06311.62
5.2.140.0070.05711.62
5.2.130.0130.05311.62
5.2.120.0000.06711.62
5.2.110.0070.06011.62
5.2.100.0070.04711.62
5.2.90.0070.05011.62
5.2.80.0000.04311.62
5.2.70.0030.06011.62
5.2.60.0070.06711.62
5.2.50.0030.05311.62
5.2.40.0100.03311.62
5.2.30.0000.05011.62
5.2.20.0070.03711.62
5.2.10.0000.06311.62
5.2.00.0130.03011.62
5.1.60.0000.03311.62
5.1.50.0000.05311.62
5.1.40.0000.04311.62
5.1.30.0030.04311.62
5.1.20.0030.06011.62
5.1.10.0070.05011.62
5.1.00.0130.05011.62
5.0.50.0000.05011.62
5.0.40.0100.03711.62
5.0.30.0030.05711.62
5.0.20.0100.03311.62
5.0.10.0030.03711.62
5.0.00.0100.06011.62
4.4.90.0070.01711.62
4.4.80.0070.03011.62
4.4.70.0030.03711.62
4.4.60.0100.02311.62
4.4.50.0070.03011.62
4.4.40.0030.04011.62
4.4.30.0030.03711.62
4.4.20.0070.03311.62
4.4.10.0000.02711.62
4.4.00.0000.04711.62
4.3.110.0100.02011.62
4.3.100.0030.03311.62
4.3.90.0100.02311.62
4.3.80.0000.05311.62
4.3.70.0030.03011.62
4.3.60.0000.03711.62
4.3.50.0000.03711.62
4.3.40.0100.03311.62
4.3.30.0000.02311.62
4.3.20.0070.03011.62
4.3.10.0030.03311.62
4.3.00.0030.03311.62

preferences:
42.12 ms | 401 KiB | 5 Q