3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = "This is a test :) :D It's a boring test."; $a = nl2br($a); $a = str_replace( array(':)', ':D'), array('Emoticon Smile', 'Emoticon colon D'), $a ); echo $a;

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.0140.00718.55
8.3.50.0190.00821.15
8.3.40.0140.00018.85
8.3.30.0110.00320.21
8.3.20.0000.00718.51
8.3.10.0040.00420.79
8.3.00.0080.00419.68
8.2.180.0140.00716.38
8.2.170.0030.01422.96
8.2.160.0130.00620.35
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0080.00026.16
8.2.120.0130.00619.83
8.2.110.0090.00319.45
8.2.100.0040.00817.84
8.2.90.0030.00519.04
8.2.80.0000.00817.97
8.2.70.0040.00417.50
8.2.60.0080.00317.93
8.2.50.0030.00518.07
8.2.40.0070.00018.16
8.2.30.0050.00319.32
8.2.20.0070.00017.55
8.2.10.0000.00717.82
8.2.00.0040.00417.63
8.1.280.0070.00725.92
8.1.270.0080.00023.99
8.1.260.0060.00926.35
8.1.250.0040.00428.09
8.1.240.0080.00021.28
8.1.230.0040.00717.52
8.1.220.0030.00617.74
8.1.210.0000.00818.77
8.1.200.0090.00017.10
8.1.190.0040.00417.10
8.1.180.0050.00318.10
8.1.170.0000.00818.53
8.1.160.0080.00018.82
8.1.150.0080.00018.56
8.1.140.0000.00717.30
8.1.130.0070.00017.72
8.1.120.0040.00417.30
8.1.110.0040.00417.41
8.1.100.0050.00217.40
8.1.90.0000.00717.29
8.1.80.0000.00717.42
8.1.70.0030.00317.28
8.1.60.0000.00917.34
8.1.50.0000.00817.36
8.1.40.0040.00417.41
8.1.30.0040.00417.63
8.1.20.0000.00817.49
8.1.10.0050.00317.41
8.1.00.0080.00317.40
8.0.300.0030.00618.77
8.0.290.0050.00216.63
8.0.280.0020.00518.51
8.0.270.0030.00317.24
8.0.260.0040.00416.81
8.0.250.0060.00316.95
8.0.240.0040.00416.93
8.0.230.0080.00016.88
8.0.220.0030.00316.80
8.0.210.0030.00316.68
8.0.200.0000.00616.82
8.0.190.0000.00816.88
8.0.180.0050.00216.86
8.0.170.0040.00416.81
8.0.160.0070.00016.73
8.0.150.0000.00716.64
8.0.140.0030.00316.80
8.0.130.0000.00513.27
8.0.120.0040.00416.68
8.0.110.0070.00016.80
8.0.100.0000.00716.89
8.0.90.0000.00716.66
8.0.80.0060.01016.89
8.0.70.0050.00216.79
8.0.60.0040.00416.65
8.0.50.0080.00016.85
8.0.30.0120.00617.18
8.0.20.0170.00317.40
8.0.10.0050.00216.83
8.0.00.0040.01416.84
7.4.330.0000.00516.73
7.4.320.0000.00716.52
7.4.300.0030.00316.41
7.4.290.0030.00316.50
7.4.280.0060.00016.28
7.4.270.0030.00316.43
7.4.260.0000.00513.21
7.4.250.0050.00216.48
7.4.240.0070.00016.54
7.4.230.0030.00316.54
7.4.220.0110.00816.42
7.4.210.0090.00716.50
7.4.200.0070.00016.55
7.4.190.0000.00716.39
7.4.160.0120.00316.20
7.4.150.0040.01517.40
7.4.140.0100.00717.86
7.4.130.0090.01016.51
7.4.120.0080.01116.37
7.4.110.0080.01216.50
7.4.100.0120.00616.63
7.4.90.0060.01316.32
7.4.80.0160.00619.39
7.4.70.0140.00916.44
7.4.60.0070.01016.23
7.4.50.0040.00416.04
7.4.40.0070.00722.77
7.4.30.0100.00716.31
7.4.00.0110.00814.87
7.3.330.0000.00512.88
7.3.320.0000.00513.04
7.3.310.0050.00516.18
7.3.300.0070.00016.19
7.3.290.0040.01116.16
7.3.280.0030.00916.29
7.3.270.0090.01317.40
7.3.260.0140.00818.24
7.3.250.0120.00616.29
7.3.240.0070.01016.52
7.3.230.0030.01316.39
7.3.210.0100.01316.56
7.3.200.0100.00716.19
7.3.190.0160.00016.51
7.3.180.0070.01416.32
7.3.170.0090.00616.30
7.3.160.0030.01416.58
7.3.120.0050.01114.87
7.3.110.0060.00614.81
7.3.100.0060.01214.45
7.3.90.0060.00914.86
7.3.80.0000.01415.05
7.3.70.0080.00814.72
7.3.60.0070.00714.40
7.3.50.0030.00914.55
7.3.40.0100.00314.59
7.3.30.0100.00714.82
7.3.20.0130.00016.66
7.3.10.0090.00516.70
7.3.00.0030.01016.34
7.2.330.0070.01016.58
7.2.320.0120.00916.30
7.2.310.0090.00916.67
7.2.300.0060.01016.68
7.2.290.0090.00616.44
7.2.250.0130.00614.92
7.2.240.0100.01014.90
7.2.230.0060.01014.97
7.2.220.0070.01015.17
7.2.210.0070.01115.01
7.2.200.0080.00314.86
7.2.190.0030.01014.88
7.2.180.0040.01114.98
7.2.170.0090.00614.52
7.2.130.0100.00716.46
7.2.120.0120.00416.81
7.2.110.0070.01116.73
7.2.100.0080.00316.90
7.2.90.0100.00316.64
7.2.80.0060.00716.66
7.2.70.0120.00317.04
7.2.60.0050.00716.81
7.2.50.0070.00716.90
7.2.40.0000.01317.03
7.2.30.0030.01016.88
7.2.20.0060.00916.76
7.2.10.0120.00316.48
7.2.00.0120.00316.50
7.1.330.0040.00915.63
7.1.320.0000.00915.61
7.1.310.0070.00715.78
7.1.300.0140.00015.89
7.1.290.0000.01115.75
7.1.280.0100.00315.52
7.1.270.0030.01015.73
7.1.260.0090.00615.58
7.1.250.0000.01015.70
7.1.200.0180.00415.87
7.1.100.0070.00718.08
7.1.70.0000.00817.27
7.1.60.0070.00417.24
7.1.50.0080.00416.96
7.1.40.0030.01816.56
7.1.30.0060.01216.64
7.1.20.0090.00916.87
7.1.10.0000.01016.42
7.1.00.0000.00716.77
7.0.200.0000.00816.77
7.0.190.0030.00616.58
7.0.180.0040.00816.33
7.0.170.0060.00316.33
7.0.160.0050.00516.41
7.0.150.0060.00616.33
7.0.140.0030.00616.33
7.0.130.0080.00016.39
7.0.120.0000.00716.49
7.0.110.0070.01016.48
7.0.100.0000.01216.33
7.0.90.0040.00416.33
7.0.80.0000.01016.38
7.0.70.0000.00816.33
7.0.60.0030.00516.33
7.0.50.0040.00416.64
7.0.40.0000.00916.33
7.0.30.0050.00316.33
7.0.20.0060.00316.33
7.0.10.0040.00416.33
7.0.00.0060.00316.33
5.6.300.0100.03620.67
5.6.290.0060.03820.66
5.6.280.0200.03720.85
5.6.270.0030.04020.99
5.6.260.0110.03220.88
5.6.250.0030.04521.00
5.6.240.0060.04720.79
5.6.230.0000.05620.93
5.6.220.0100.04020.77
5.6.210.0030.04521.00
5.6.200.0000.04420.84
5.6.190.0030.04020.83
5.6.180.0000.04620.94
5.6.170.0130.03920.69
5.6.160.0030.04420.95
5.6.150.0060.04420.98
5.6.140.0070.04720.93
5.6.130.0070.04720.69
5.6.120.0030.04520.84
5.6.110.0100.04120.65
5.6.100.0030.05020.77
5.6.90.0060.04520.91
5.6.80.0030.06620.36
5.6.70.0000.04920.09
5.6.60.0030.04320.21
5.6.50.0030.04120.33
5.6.40.0030.04420.32
5.6.30.0030.03920.15
5.6.20.0000.04120.30
5.6.10.0070.04420.23
5.6.00.0030.04220.13
5.5.380.0090.03917.48
5.5.370.0040.05017.61
5.5.360.0000.05117.44
5.5.350.0040.03917.40
5.5.340.0180.04617.70
5.5.330.0000.04418.12
5.5.320.0040.04618.03
5.5.310.0030.04818.02
5.5.300.0040.04617.95
5.5.290.0030.04517.86
5.5.280.0030.05018.03
5.5.270.0000.04618.02
5.5.260.0100.03817.96
5.5.250.0070.04117.52
5.5.240.0070.04717.33
5.5.230.0030.04117.37
5.5.220.0000.04717.11
5.5.210.0070.03617.22
5.5.200.0160.03317.42
5.5.190.0030.05417.38
5.5.180.0000.04717.41
5.5.160.0070.07517.37
5.5.150.0100.03217.29
5.5.140.0130.02917.38
5.5.130.0030.04717.28
5.5.120.0030.04317.31
5.5.110.0060.03617.29
5.5.100.0060.03617.37
5.5.90.0030.03717.11
5.5.80.0100.03617.19
5.5.70.0090.03617.23
5.5.60.0040.05317.08
5.5.50.0060.03817.07
5.5.40.0000.04317.18
5.5.30.0030.04017.35
5.5.20.0000.04517.27
5.5.10.0030.04217.27
5.5.00.0090.03117.20
5.4.450.0030.04419.31
5.4.440.0070.04019.50
5.4.430.0060.04119.30
5.4.420.0030.03919.20
5.4.410.0030.04119.36
5.4.400.0100.03319.09
5.4.390.0200.04018.99
5.4.380.0000.04619.10
5.4.370.0030.04819.05
5.4.360.0000.05118.97
5.4.350.0030.04019.04
5.4.340.0100.04419.07
5.4.320.0200.04019.08
5.4.310.0270.03719.14
5.4.300.0000.04119.04
5.4.290.0030.04418.97
5.4.280.0100.05118.85
5.4.270.0070.04119.06
5.4.260.0000.04418.97
5.4.250.0100.08518.98
5.4.240.0060.05119.16
5.4.230.0060.05119.05
5.4.220.0060.03819.05
5.4.210.0090.04119.06
5.4.200.0030.04919.05
5.4.190.0060.03719.13
5.4.180.0030.04618.99
5.4.170.0030.05018.96
5.4.160.0070.03818.81
5.4.150.0030.04219.14
5.4.140.0040.05016.44
5.4.130.0060.03516.53
5.4.120.0030.05216.51
5.4.110.0030.03716.57
5.4.100.0070.06216.61
5.4.90.0030.04616.66
5.4.80.0070.03116.35
5.4.70.0070.03716.62
5.4.60.0070.04016.41
5.4.50.0000.03816.40
5.4.40.0070.03416.67
5.4.30.0030.04016.49
5.4.20.0000.04816.59
5.4.10.0030.03816.54
5.4.00.0030.03616.33
5.3.290.0070.03516.33
5.3.280.0160.06116.33
5.3.270.0030.04416.33
5.3.260.0000.04016.33
5.3.250.0100.03316.33
5.3.240.0000.03916.33
5.3.230.0030.03916.33
5.3.220.0070.04016.33
5.3.210.0000.04116.33
5.3.200.0070.03616.33
5.3.190.0030.04716.33
5.3.180.0100.04516.33
5.3.170.0070.04616.33
5.3.160.0070.04416.33
5.3.150.0000.04016.33
5.3.140.0000.04616.33
5.3.130.0030.03816.33
5.3.120.0000.05716.33
5.3.110.0030.03716.33
5.3.100.0070.03116.33
5.3.90.0070.03116.33
5.3.80.0000.04116.33
5.3.70.0030.03516.33
5.3.60.0030.03516.33
5.3.50.0100.05916.33
5.3.40.0000.04116.33
5.3.30.0030.03716.33
5.3.20.0030.03516.33
5.3.10.0170.03416.33
5.3.00.0000.04116.33
5.2.170.0000.03416.33
5.2.160.0000.03216.33
5.2.150.0060.03516.33
5.2.140.0060.02916.33
5.2.130.0000.04216.33
5.2.120.0030.03116.33
5.2.110.0000.04316.33
5.2.100.0040.03916.33
5.2.90.0070.03316.33
5.2.80.0100.02616.33
5.2.70.0060.02516.33
5.2.60.0000.04116.33
5.2.50.0030.04116.33
5.2.40.0030.03416.33
5.2.30.0030.04916.33
5.2.20.0100.04016.33
5.2.10.0030.02916.33
5.2.00.0030.03316.33
5.1.60.0060.02216.33
5.1.50.0030.02216.33
5.1.40.0000.02916.33
5.1.30.0030.03016.33
5.1.20.0100.04216.33
5.1.10.0000.02816.33
5.1.00.0040.02516.33
5.0.50.0000.02216.33
5.0.40.0000.02214.69
5.0.30.0030.03714.69
5.0.20.0030.04514.69
5.0.10.0030.04414.69
5.0.00.0030.07014.69
4.4.90.0000.01616.33
4.4.80.0000.02316.33
4.4.70.0040.01216.33
4.4.60.0000.01716.33
4.4.50.0000.01816.33
4.4.40.0070.03116.33
4.4.30.0000.01616.33
4.4.20.0030.02116.33
4.4.10.0000.01716.33
4.4.00.0130.02014.69
4.3.110.0030.01314.69
4.3.100.0000.02114.69
4.3.90.0000.03514.69
4.3.80.0030.03214.69
4.3.70.0000.01814.69
4.3.60.0040.01414.69
4.3.50.0000.03314.69
4.3.40.0070.03114.69
4.3.30.0030.01514.69
4.3.20.0000.01914.69
4.3.10.0190.00614.69
4.3.00.0070.01014.69

preferences:
37.94 ms | 401 KiB | 5 Q