3v4l.org

run code in 300+ PHP versions simultaneously
<?php $text = 'PHP Tutorial'; $text = preg_replace('/(\b[a-z])/i','<span style="color:red;">\1</span>',$text); echo $text; ?> - See more at: http://www.w3resource.com/php-exercises/php-basic-exercises.php#sthash.E1VQ7D9F.dpuf

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.40.0090.00919.00
8.3.30.0040.01519.01
8.3.20.0050.00220.21
8.3.10.0000.00820.65
8.3.00.0040.00419.50
8.2.170.0150.00622.96
8.2.160.0030.01220.37
8.2.150.0040.00424.18
8.2.140.0030.00624.66
8.2.130.0070.00026.16
8.2.120.0080.00021.08
8.2.110.0060.00322.29
8.2.100.0080.00417.91
8.2.90.0090.00019.14
8.2.80.0050.00317.97
8.2.70.0000.00817.88
8.2.60.0060.00317.80
8.2.50.0080.00018.07
8.2.40.0000.00818.22
8.2.30.0040.00419.33
8.2.20.0000.00717.78
8.2.10.0040.00418.06
8.2.00.0040.00417.90
8.1.270.0040.00422.14
8.1.260.0050.00226.35
8.1.250.0040.00428.09
8.1.240.0090.00023.78
8.1.230.0060.00919.21
8.1.220.0040.00417.74
8.1.210.0000.00818.77
8.1.200.0030.00617.36
8.1.190.0040.00417.35
8.1.180.0040.00418.10
8.1.170.0000.01018.62
8.1.160.0040.00421.84
8.1.150.0050.00318.76
8.1.140.0000.00717.53
8.1.130.0070.00017.90
8.1.120.0000.00717.57
8.1.110.0040.00417.55
8.1.100.0020.00517.44
8.1.90.0000.00717.55
8.1.80.0050.00217.52
8.1.70.0000.00717.42
8.1.60.0060.00317.55
8.1.50.0000.00917.58
8.1.40.0040.00417.59
8.1.30.0000.00817.71
8.1.20.0040.00417.73
8.1.10.0040.00417.69
8.1.00.0030.00517.44
8.0.300.0030.00618.77
8.0.290.0080.00016.75
8.0.280.0000.00718.46
8.0.270.0050.00217.18
8.0.260.0000.00617.18
8.0.250.0070.00017.10
8.0.240.0000.00617.09
8.0.230.0080.00017.01
8.0.220.0000.00616.88
8.0.210.0000.00816.88
8.0.200.0030.00317.01
8.0.190.0040.00416.92
8.0.180.0040.00316.98
8.0.170.0040.00416.88
8.0.160.0080.00017.02
8.0.150.0030.00316.89
8.0.140.0030.00516.96
8.0.130.0000.00513.40
8.0.120.0000.00716.93
8.0.110.0000.00716.97
8.0.100.0070.00016.96
8.0.90.0000.00716.86
8.0.80.0100.00616.96
8.0.70.0000.00716.79
8.0.60.0000.00716.91
8.0.50.0040.00416.84
8.0.30.0140.01217.10
8.0.20.0160.00417.40
8.0.10.0040.00416.94
8.0.00.0090.01016.93
7.4.330.0000.00515.10
7.4.320.0000.00616.64
7.4.300.0060.00016.54
7.4.290.0000.00716.67
7.4.280.0080.00016.64
7.4.270.0040.00416.57
7.4.260.0030.00316.66
7.4.250.0040.00416.70
7.4.240.0020.00616.64
7.4.230.0070.00016.82
7.4.220.0150.00316.85
7.4.210.0030.01116.69
7.4.200.0070.00016.52
7.4.160.0200.00316.42
7.4.150.0150.00617.40
7.4.140.0120.01217.86
7.4.130.0120.00516.74
7.4.120.0120.00516.66
7.4.110.0070.01016.77
7.4.100.0070.01216.46
7.4.90.0100.00716.68
7.4.80.0180.00319.39
7.4.70.0180.00616.83
7.4.60.0100.01316.54
7.4.50.0030.00616.64
7.4.40.0090.00616.78
7.4.30.0080.00816.77
7.4.00.0100.01014.88
7.3.330.0030.00313.23
7.3.320.0070.00013.26
7.3.310.0000.00616.43
7.3.300.0030.00316.25
7.3.290.0130.00316.35
7.3.280.0070.00916.29
7.3.270.0140.01017.40
7.3.260.0090.00916.41
7.3.250.0090.00816.51
7.3.240.0120.00616.38
7.3.230.0120.00416.41
7.3.210.0200.00016.62
7.3.200.0140.00316.43
7.3.190.0070.01016.72
7.3.180.0110.00416.58
7.3.170.0060.01016.67
7.3.160.0150.00316.80
7.3.120.0060.01014.90
7.3.110.0100.00715.05
7.3.100.0030.00914.83
7.3.90.0070.01114.84
7.3.80.0070.00715.06
7.3.70.0100.00714.80
7.3.60.0040.00815.00
7.3.50.0030.01014.99
7.3.40.0070.00714.76
7.3.30.0100.00315.01
7.3.20.0060.00316.70
7.3.10.0080.00816.61
7.3.00.0070.00816.52
7.2.330.0060.01016.77
7.2.320.0100.01016.62
7.2.310.0030.01516.73
7.2.300.0080.00816.46
7.2.290.0080.00816.69
7.2.250.0070.01315.17
7.2.240.0130.00614.84
7.2.230.0030.01215.12
7.2.220.0130.00315.33
7.2.210.0040.01115.02
7.2.200.0070.00714.90
7.2.190.0090.00014.93
7.2.180.0030.00614.80
7.2.170.0040.01114.91
7.2.160.0070.00715.17
7.2.150.0080.00317.02
7.2.140.0060.01017.12
7.2.130.0040.01216.81
7.2.120.0090.00616.90
7.2.110.0050.00916.97
7.2.100.0040.00916.86
7.2.90.0050.00916.86
7.2.80.0070.00816.81
7.2.70.0060.01016.82
7.2.60.0070.00916.87
7.2.50.0110.00417.01
7.2.40.0060.00916.74
7.2.30.0080.00616.78
7.2.20.0080.00716.96
7.2.10.0060.00616.88
7.2.00.0100.00417.34
7.1.330.0100.00716.04
7.1.320.0030.01016.05
7.1.310.0100.00315.78
7.1.300.0000.01515.89
7.1.290.0060.00915.93
7.1.280.0030.01015.83
7.1.270.0070.01016.13
7.1.260.0070.00415.69
7.1.250.0070.00615.79
7.1.240.0110.00416.07
7.1.230.0100.00716.11
7.1.220.0000.00915.86
7.1.210.0040.00516.04
7.1.200.0030.01015.68
7.1.190.0000.01715.93
7.1.180.0060.00616.07
7.1.170.0060.00615.86
7.1.160.0040.01115.70
7.1.150.0100.00316.02
7.1.140.0060.01015.95
7.1.130.0000.00915.96
7.1.120.0080.00415.98
7.1.110.0030.01016.09
7.1.100.0090.00617.29
7.1.90.0070.00715.82
7.1.80.0060.00615.84
7.1.70.0040.00716.58
7.1.60.0110.00617.87
7.1.50.0080.01116.63
7.1.40.0060.00616.09
7.1.30.0070.00715.64
7.1.20.0070.00316.00
7.1.10.0090.00315.94
7.1.00.0020.04719.07
7.0.330.0030.00915.54
7.0.320.0070.00715.59
7.0.310.0040.00815.70
7.0.300.0100.00315.57
7.0.290.0000.01315.39
7.0.280.0030.01015.29
7.0.270.0030.00915.66
7.0.260.0100.00315.76
7.0.250.0040.00715.75
7.0.240.0030.00615.61
7.0.230.0030.01015.77
7.0.220.0060.00615.61
7.0.210.0000.00915.53
7.0.200.0030.00516.43
7.0.190.0040.00715.36
7.0.180.0080.00415.45
7.0.170.0060.00615.66
7.0.160.0030.00515.39
7.0.150.0000.01015.62
7.0.140.0070.03918.85
7.0.130.0030.00615.50
7.0.120.0040.00715.82
7.0.110.0060.00615.39
7.0.100.0000.00915.21
7.0.90.0110.00415.48
7.0.80.0030.01015.57
7.0.70.0080.00815.54
7.0.60.0080.04217.80
7.0.50.0110.04016.80
7.0.40.0110.03816.76
7.0.30.0150.02516.96
7.0.20.0180.04116.88
7.0.10.0050.02516.89
7.0.00.0080.02516.85
5.6.380.0060.00614.55
5.6.370.0070.00714.20
5.6.360.0080.00314.19
5.6.350.0000.00814.46
5.6.340.0060.00914.21
5.6.330.0060.00313.83
5.6.320.0000.01314.01
5.6.310.0040.00814.50
5.6.300.0070.00714.52
5.6.290.0030.00614.21
5.6.280.0040.04017.56
5.6.270.0040.01114.65
5.6.260.0030.01014.52
5.6.250.0000.01314.28
5.6.240.0110.00314.21
5.6.230.0030.00714.14
5.6.220.0040.01214.24
5.6.210.0140.03617.31
5.6.200.0040.02916.33
5.6.190.0150.03717.34
5.6.180.0220.03617.42
5.6.170.0150.04217.13
5.6.160.0120.03817.34
5.6.150.0110.03816.24
5.6.140.0070.02416.26
5.6.130.0070.03216.39
5.6.120.0080.02817.68
5.6.110.0100.03817.52
5.6.100.0060.02317.76
5.6.90.0020.02817.52
5.6.80.0050.03017.16
5.6.70.0040.00814.05
5.6.60.0080.00014.17
5.6.50.0090.00314.21
5.6.40.0030.00714.29
5.6.30.0100.00314.14
5.6.20.0040.00714.12
5.6.10.0000.01114.11
5.6.00.0030.00714.10
5.5.380.0000.00711.13
5.5.370.0030.00511.00
5.5.360.0100.00311.11
5.5.350.2190.02415.76
5.5.340.0070.03814.46
5.5.330.0070.04415.68
5.5.320.0100.02415.71
5.5.310.0150.03815.64
5.5.300.0020.03214.50
5.5.290.0060.04314.54
5.5.280.0000.05315.94
5.5.270.0030.04615.99
5.5.260.0060.04216.09
5.5.250.0080.03815.81
5.5.240.0130.03515.63
5.5.230.0000.00711.00
5.5.220.0080.00411.00
5.5.210.0000.01111.00
5.5.200.0040.00711.00
5.5.190.0000.01011.00
5.5.180.0040.00411.09
5.5.170.0000.01011.05
5.5.160.0060.00611.05
5.5.150.0060.00611.00
5.5.140.0000.00711.13
5.5.130.0050.00011.00
5.5.120.0100.00311.05
5.5.110.0030.00611.00
5.5.100.0070.00311.00
5.5.90.0030.00311.10
5.5.80.0060.00611.07
5.5.70.0090.00011.00
5.5.60.0040.00711.00
5.5.50.0000.00511.00
5.5.40.0030.00411.00
5.5.30.0070.00011.00
5.5.20.0000.00711.00
5.5.10.0000.01111.01
5.5.00.0050.00211.04
5.4.450.0170.02915.04
5.4.440.0150.02515.15
5.4.430.0050.02915.10
5.4.420.0190.01915.26
5.4.410.0360.02115.19
5.4.400.0130.02015.18
5.4.390.0200.02715.13
5.4.380.0120.03914.77
5.4.370.0140.02514.80
5.4.360.0130.03014.87
5.4.350.0170.03414.86
5.4.340.0160.03114.84
5.4.330.0030.00911.00
5.4.320.0070.01811.79
5.4.310.0050.02011.72
5.4.300.0030.02411.74
5.4.290.0050.02111.73
5.4.280.0070.02211.72
5.4.270.0060.02011.69
5.4.260.0050.02211.67
5.4.250.0040.02311.68
5.4.240.0040.02411.69
5.4.230.0070.02211.72
5.4.220.0070.02211.74
5.4.210.0040.02811.67
5.4.200.0070.02111.71
5.4.190.0050.02011.67
5.4.180.0030.02211.67
5.4.170.0050.02511.68
5.4.160.0040.02211.67
5.4.150.0050.02211.67
5.4.140.0040.02811.57
5.4.130.0070.01911.58
5.4.120.0010.02311.49
5.4.110.0050.01911.52
5.4.100.0070.02011.48
5.4.90.0040.02211.62
5.4.80.0070.02211.48
5.4.70.0070.01711.48
5.4.60.0040.02611.48
5.4.50.0060.01911.56
5.4.40.0030.02311.48
5.4.30.0040.02111.47
5.4.20.0040.02211.60
5.4.10.0050.02311.48
5.4.00.0090.02111.22
5.3.290.0070.02211.90
5.3.280.0090.02511.86
5.3.270.0080.02811.87
5.3.260.0040.02411.86
5.3.250.0060.02111.86
5.3.240.0070.02511.86
5.3.230.0070.02711.86
5.3.220.0050.03011.84
5.3.210.0060.02911.84
5.3.200.0070.03111.84
5.3.190.0060.03111.84
5.3.180.0050.02411.84
5.3.170.0060.02311.84
5.3.160.0060.02811.84
5.3.150.0020.03111.84
5.3.140.0060.03011.83
5.3.130.0070.02211.83
5.3.120.0040.02411.83
5.3.110.0030.02511.83
5.3.100.0040.02211.56
5.3.90.0050.02011.54
5.3.80.0060.02011.54
5.3.70.0040.02211.54
5.3.60.0070.02011.54
5.3.50.0040.02811.50
5.3.40.0040.02511.50
5.3.30.0070.02311.47
5.3.20.0040.02811.36
5.3.10.0060.01911.35
5.3.00.0040.02411.34
5.2.170.0040.01910.09
5.2.160.0040.01810.09
5.2.150.0040.02310.09
5.2.140.0040.02210.09
5.2.130.0070.01910.07
5.2.120.0040.01710.07
5.2.110.0020.01910.07
5.2.100.0090.01710.07
5.2.90.0040.02110.07
5.2.80.0040.02210.07
5.2.70.0060.01810.07
5.2.60.0080.01810.04
5.2.50.0070.01410.03
5.2.40.0020.01710.02
5.2.30.0080.01410.01
5.2.20.0050.01410.00
5.2.10.0040.0169.96
5.2.00.0020.0189.89
5.1.60.0030.0159.53
5.1.50.0020.0189.53
5.1.40.0060.0149.52
5.1.30.0030.0199.70
5.1.20.0030.0189.71
5.1.10.0040.0179.57
5.1.00.0050.0199.57
5.0.50.0040.0118.81
5.0.40.0010.0158.74
5.0.30.0040.0208.65
5.0.20.0020.0158.63
5.0.10.0050.0148.62
5.0.00.0050.0198.62
4.4.90.0020.0137.89
4.4.80.0020.0117.88
4.4.70.0040.0097.88
4.4.60.0030.0097.88
4.4.50.0020.0117.89
4.4.40.0000.0187.86
4.4.30.0040.0097.88
4.4.20.0020.0117.92
4.4.10.0020.0097.93
4.4.00.0050.0137.88
4.3.110.0030.0107.84
4.3.100.0040.0087.84
4.3.90.0010.0117.82
4.3.80.0040.0137.79
4.3.70.0040.0077.82
4.3.60.0020.0107.81
4.3.50.0010.0117.81
4.3.40.0010.0157.77
4.3.30.0040.0077.14
4.3.20.0040.0077.13
4.3.10.0020.0117.11
4.3.00.0050.01212.29

preferences:
47 ms | 400 KiB | 5 Q