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));

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.0120.00918.30
8.3.50.0090.00618.21
8.3.40.0100.00718.76
8.3.30.0130.00318.73
8.3.20.0080.00019.19
8.3.10.0080.00021.78
8.3.00.0040.00417.77
8.2.180.0090.00916.88
8.2.170.0100.00722.96
8.2.160.0110.00418.68
8.2.150.0040.00424.18
8.2.140.0000.00824.66
8.2.130.0080.00019.64
8.2.120.0000.00826.35
8.2.110.0090.00019.30
8.2.100.0060.00617.78
8.2.90.0050.00319.09
8.2.80.0030.00617.97
8.2.70.0040.00418.04
8.2.60.0000.00917.80
8.2.50.0040.00418.10
8.2.40.0040.00419.09
8.2.30.0000.00819.47
8.2.20.0000.00718.00
8.2.10.0040.00418.11
8.2.00.0070.00019.45
8.1.280.0040.01425.92
8.1.270.0040.00423.82
8.1.260.0080.00026.35
8.1.250.0090.00028.09
8.1.240.0000.01123.91
8.1.230.0080.00417.83
8.1.220.0000.00817.76
8.1.210.0000.00818.77
8.1.200.0100.00017.25
8.1.190.0000.00917.10
8.1.180.0000.00818.10
8.1.170.0040.00418.47
8.1.160.0070.00418.84
8.1.150.0040.00418.87
8.1.140.0040.00419.60
8.1.130.0030.00319.06
8.1.120.0110.00017.43
8.1.110.0000.01017.43
8.1.100.0030.00517.30
8.1.90.0060.00317.37
8.1.80.0040.00417.45
8.1.70.0030.00317.41
8.1.60.0000.00917.64
8.1.50.0000.00817.60
8.1.40.0000.00817.50
8.1.30.0030.01017.65
8.1.20.0040.00417.56
8.1.10.0040.00417.40
8.1.00.0030.00517.29
8.0.300.0080.00018.77
8.0.290.0000.00816.63
8.0.280.0000.00718.33
8.0.270.0050.00317.21
8.0.260.0080.00017.20
8.0.250.0110.00016.82
8.0.240.0030.00316.91
8.0.230.0000.00716.75
8.0.220.0000.00816.74
8.0.210.0000.00616.83
8.0.200.0030.00316.92
8.0.190.0000.00716.98
8.0.180.0050.00216.76
8.0.170.0040.00416.79
8.0.160.0030.00316.83
8.0.150.0040.00416.77
8.0.140.0050.00316.76
8.0.130.0050.00013.27
8.0.120.0000.00716.71
8.0.110.0050.00216.82
8.0.100.0050.00216.67
8.0.90.0000.00716.75
8.0.80.0090.00916.82
8.0.70.0040.00416.73
8.0.60.0000.00716.63
8.0.50.0070.00016.76
8.0.30.0110.00817.10
8.0.20.0090.01117.40
8.0.10.0040.00416.95
8.0.00.0100.01016.66
7.4.330.0040.00015.55
7.4.320.0030.00316.38
7.4.300.0070.00016.58
7.4.290.0030.00516.55
7.4.280.0050.00316.61
7.4.270.0040.00416.47
7.4.260.0040.00416.57
7.4.250.0080.00016.59
7.4.240.0030.00316.38
7.4.230.0030.00516.51
7.4.220.0000.00816.73
7.4.210.0120.00216.60
7.4.200.0030.00316.65
7.4.160.0080.00816.30
7.4.140.0090.01017.86
7.4.130.0230.00316.54
7.4.120.0100.00816.54
7.4.110.0150.00316.35
7.4.100.0140.00316.53
7.4.90.0130.00416.44
7.4.80.0170.00719.39
7.4.70.0030.01316.59
7.4.60.0060.01016.43
7.4.50.0060.00916.23
7.4.40.0030.01316.48
7.4.00.0070.01014.74
7.3.330.0000.00513.11
7.3.320.0030.00313.00
7.3.310.0050.00216.06
7.3.300.0030.00316.13
7.3.290.0000.00616.25
7.3.280.0090.00616.29
7.3.260.0100.01216.26
7.3.240.0090.00916.47
7.3.230.0080.01116.24
7.3.210.0090.00916.27
7.3.200.0090.01216.31
7.3.190.0030.01316.47
7.3.180.0090.00616.32
7.3.170.0110.00616.25
7.3.160.0120.00416.42
7.3.10.0040.01116.58
7.3.00.0050.00516.54
7.2.330.0120.01116.49
7.2.320.0030.01316.29
7.2.310.0140.00316.40
7.2.300.0170.00016.64
7.2.290.0140.00316.45
7.2.130.0030.01016.99
7.2.120.0140.00416.88
7.2.110.0070.00716.81
7.2.100.0030.00916.42
7.2.90.0070.00716.81
7.2.80.0100.00316.90
7.2.70.0090.00616.88
7.2.60.0060.00616.76
7.2.50.0060.00616.55
7.2.40.1350.00917.33
7.2.30.3280.00717.29
7.2.20.2430.01017.37
7.2.10.0880.01217.31
7.2.00.8960.02417.37
7.1.250.0080.00415.73
7.1.200.0000.00615.84
7.1.160.2250.01116.82
7.1.150.2100.01116.94
7.1.140.1280.00416.96
7.1.130.3380.01316.71
7.1.122.0750.04616.34
7.1.111.5030.03116.37
7.1.101.5250.02716.08
7.1.90.8890.02516.30
7.1.80.9730.02416.45
7.1.71.0680.03015.02
7.1.60.7900.03333.32
7.1.50.7230.03632.88
7.1.40.5370.03232.50
7.1.30.7340.03732.63
7.1.20.5650.03832.70
7.1.10.6550.02814.75
7.1.00.5900.02914.82

preferences:
33.63 ms | 400 KiB | 5 Q