3v4l.org

run code in 300+ PHP versions simultaneously
<?php function encode($str) { return str_replace(str_split('+/='), str_split('-_.'), base64_encode($str)); } function decode($str) { return base64_decode(str_replace(str_split('-_.'), str_split('+/='), $str)); } $str = "Now is the time for all good men to come to the aid of the party."; var_dump($enc = encode($str), decode($enc), rawurlencode($str));

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.0060.00918.18
8.3.50.0090.01218.02
8.3.40.0120.00418.53
8.3.30.0040.01118.67
8.3.20.0000.00819.10
8.3.10.0080.00021.77
8.3.00.0040.00417.68
8.2.180.0080.00825.92
8.2.170.0130.00718.96
8.2.160.0070.00722.96
8.2.150.0080.00025.66
8.2.140.0050.00324.66
8.2.130.0040.00426.16
8.2.120.0040.00421.14
8.2.110.0060.00321.13
8.2.100.0090.00317.62
8.2.90.0030.00518.16
8.2.80.0050.00317.97
8.2.70.0050.00317.93
8.2.60.0000.00817.80
8.2.50.0080.00018.10
8.2.40.0020.00519.05
8.2.30.0000.00819.43
8.2.20.0080.00017.99
8.2.10.0030.00618.07
8.2.00.0040.00419.50
8.1.280.0140.00025.92
8.1.270.0080.00024.66
8.1.260.0140.00426.35
8.1.250.0030.00628.09
8.1.240.0030.00621.22
8.1.230.0030.00719.14
8.1.220.0050.00317.79
8.1.210.0060.00318.77
8.1.200.0060.00317.23
8.1.190.0060.00317.22
8.1.180.0030.00518.10
8.1.170.0000.00818.66
8.1.160.0060.00318.74
8.1.150.0000.00718.83
8.1.140.0030.00519.62
8.1.130.0040.00419.02
8.1.120.0030.00717.37
8.1.110.0030.00717.28
8.1.100.0000.00817.41
8.1.90.0040.00417.37
8.1.80.0000.00717.31
8.1.70.0030.00317.38
8.1.60.0040.00417.45
8.1.50.0050.00317.41
8.1.40.0050.00317.47
8.1.30.0060.00617.63
8.1.20.0000.00717.66
8.1.10.0040.00417.39
8.1.00.0000.00817.28
8.0.300.0040.00419.94
8.0.290.0080.00016.58
8.0.280.0080.00018.30
8.0.270.0000.00717.20
8.0.260.0030.00318.38
8.0.250.0000.01016.76
8.0.240.0030.00516.77
8.0.230.0030.00316.78
8.0.220.0000.00716.81
8.0.210.0030.00316.75
8.0.200.0030.00316.96
8.0.190.0050.00316.88
8.0.180.0030.00516.92
8.0.170.0050.00316.75
8.0.160.0030.00316.76
8.0.150.0000.00716.73
8.0.140.0040.00416.84
8.0.130.0050.00013.31
8.0.120.0080.00016.80
8.0.110.0030.00516.73
8.0.100.0000.00716.87
8.0.90.0000.00716.75
8.0.80.0080.00916.83
8.0.70.0040.00416.71
8.0.60.0040.00416.78
8.0.50.0050.00316.82
8.0.30.0140.00417.02
8.0.20.0140.00817.40
8.0.10.0000.00716.82
8.0.00.0110.00716.59
7.4.330.0020.00215.55
7.4.320.0060.00016.49
7.4.300.0070.00016.52
7.4.290.0050.00216.52
7.4.280.0000.00816.58
7.4.270.0070.00016.60
7.4.260.0000.00716.48
7.4.250.0000.00816.58
7.4.240.0040.00416.52
7.4.230.0030.00516.63
7.4.220.0000.00816.58
7.4.210.0080.00716.66
7.4.200.0000.00716.72
7.4.160.0080.01116.56
7.4.140.0140.00717.86
7.4.130.0110.01116.77
7.4.120.0120.00916.40
7.4.110.0130.01016.39
7.4.100.0000.01616.51
7.4.90.0120.00616.55
7.4.80.0070.01019.39
7.4.70.0030.01316.61
7.4.60.0120.00616.28
7.4.50.0060.00616.28
7.4.40.0060.01616.52
7.4.00.0090.00814.99
7.3.330.0000.00513.08
7.3.320.0000.00513.11
7.3.310.0000.00716.35
7.3.300.0000.00716.25
7.3.290.0000.00716.20
7.3.280.0030.01316.16
7.3.260.0120.00616.30
7.3.240.0110.01016.39
7.3.230.0070.01016.56
7.3.210.0040.01416.31
7.3.200.0120.00916.26
7.3.190.0100.00616.29
7.3.180.0070.00716.48
7.3.170.0090.00916.36
7.3.160.0060.01016.31
7.3.120.0090.00914.98
7.3.110.0120.00614.55
7.3.100.0040.00714.61
7.3.90.0090.00314.56
7.3.80.0030.01014.72
7.3.70.0110.00414.87
7.3.60.0100.00314.73
7.3.50.0030.01014.48
7.3.40.0030.00714.83
7.3.30.0130.00314.46
7.3.20.0040.00716.56
7.3.10.0000.01416.68
7.3.00.0060.00816.71
7.2.330.0090.00916.55
7.2.320.0140.00416.70
7.2.310.0120.00616.59
7.2.300.0160.00316.58
7.2.290.0090.00916.65
7.2.250.0060.01314.70
7.2.240.0030.01014.68
7.2.230.0100.00615.02
7.2.220.0100.00315.09
7.2.210.0000.01315.00
7.2.200.0030.01015.11
7.2.190.0030.01014.70
7.2.180.0070.01014.92
7.2.170.0130.00315.09
7.2.130.0060.00616.68
7.2.120.0000.01216.86
7.2.110.0000.01416.85
7.2.100.0040.00716.59
7.2.90.0030.01016.57
7.2.80.0060.00616.72
7.2.70.0030.00916.70
7.2.60.0080.00516.78
7.2.50.0090.00616.91
7.2.40.1090.00917.39
7.2.30.1060.00817.44
7.2.20.1480.01517.20
7.2.10.2210.01417.23
7.2.00.0920.01117.41
7.1.330.0070.00715.82
7.1.320.0060.00615.93
7.1.310.0100.00615.35
7.1.300.0040.01115.76
7.1.290.0000.01415.50
7.1.280.0030.01315.71
7.1.270.0100.00015.54
7.1.260.0070.00715.68
7.1.250.0060.00915.70
7.1.240.0000.00915.75
7.1.230.0000.01115.57
7.1.220.0080.00415.54
7.1.210.0070.00315.85
7.1.200.0080.00415.80
7.1.190.0000.01015.76
7.1.180.0070.00715.67
7.1.170.0030.00915.84
7.1.160.1240.00616.10
7.1.150.0790.00916.31
7.1.140.1000.01316.11
7.1.130.0550.00716.23
7.1.120.0840.00816.27
7.1.110.1020.01415.85
7.1.100.1090.00915.97
7.1.90.1150.01116.11
7.1.80.0610.00915.94
7.1.70.0850.00715.45
7.1.60.1860.01824.27
7.1.50.2080.01624.33
7.1.40.1920.02324.02
7.1.30.1940.01824.18
7.1.20.1970.01524.13
7.1.10.0790.01515.26
7.1.00.1620.01415.30
7.0.330.0040.00715.09
5.6.380.0040.00814.23

preferences:
59.06 ms | 400 KiB | 5 Q