3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = 'Encoding and Decoding Encrypted PHP Code'; $encoded = str_rot13($string); $decoded = str_rot13(str_rot13($string)); echo $encoded ."\n"; echo $decoded;

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.0150.00018.70
8.3.30.0110.00418.37
8.3.20.0070.00020.11
8.3.10.0040.00423.48
8.3.00.0030.00519.32
8.2.170.0120.00322.96
8.2.160.0130.00019.07
8.2.150.0030.00624.18
8.2.140.0040.00424.66
8.2.130.0040.00419.39
8.2.120.0040.00426.35
8.2.110.0090.00020.93
8.2.100.0040.00818.06
8.2.90.0040.00419.38
8.2.80.0030.00517.97
8.2.70.0040.00417.93
8.2.60.0000.00918.03
8.2.50.0090.00018.10
8.2.40.0000.00820.59
8.2.30.0050.00219.17
8.2.20.0040.00417.95
8.2.10.0040.00418.07
8.2.00.0030.00518.18
8.1.270.0070.00022.24
8.1.260.0070.00026.35
8.1.250.0040.00428.09
8.1.240.0100.01022.19
8.1.230.0110.00020.86
8.1.220.0040.00417.74
8.1.210.0090.00018.77
8.1.200.0060.00317.25
8.1.190.0000.00817.23
8.1.180.0060.00318.10
8.1.170.0000.00820.38
8.1.160.0070.00019.01
8.1.150.0040.00418.81
8.1.140.0090.00019.38
8.1.130.0030.00318.81
8.1.120.0050.00217.33
8.1.110.0000.00817.26
8.1.100.0050.00617.40
8.1.90.0080.00017.43
8.1.80.0030.00517.41
8.1.70.0000.00817.40
8.1.60.0040.00417.55
8.1.50.0000.00817.38
8.1.40.0080.00317.40
8.1.30.0000.00817.60
8.1.20.0000.00817.52
8.1.10.0070.00017.49
8.1.00.0040.00417.45
8.0.300.0040.00419.71
8.0.290.0100.00016.61
8.0.280.0040.00418.35
8.0.270.0070.00017.30
8.0.260.0000.00616.88
8.0.250.0030.00316.80
8.0.240.0050.00416.93
8.0.230.0080.00016.85
8.0.220.0000.00716.80
8.0.210.0000.00716.77
8.0.200.0030.00316.93
8.0.190.0040.00416.91
8.0.180.0050.00216.80
8.0.170.0040.00416.83
8.0.160.0000.00816.84
8.0.150.0030.00316.83
8.0.140.0070.00016.84
8.0.130.0040.00413.27
8.0.120.0040.00416.91
8.0.110.0070.00016.77
8.0.100.0000.00816.75
8.0.90.0040.00416.74
8.0.80.0060.01016.92
8.0.70.0040.00416.88
8.0.60.0050.00216.89
8.0.50.0050.00216.92
8.0.30.0070.01116.94
8.0.20.0100.01117.40
8.0.10.0080.00016.80
8.0.00.0100.00716.66
7.4.330.0050.00015.55
7.4.320.0060.00016.53
7.4.300.0030.00316.52
7.4.290.0030.00716.53
7.4.280.0030.00716.52
7.4.270.0080.00016.51
7.4.260.0030.00316.48
7.4.250.0040.00416.35
7.4.240.0030.00316.33
7.4.230.0030.00316.61
7.4.220.0090.00916.55
7.4.210.0060.00916.48
7.4.200.0000.00716.55
7.4.160.0100.00616.45
7.4.150.0170.00317.40
7.4.140.0150.00417.86
7.4.130.0090.00916.66
7.4.120.0060.01216.49
7.3.330.0050.00013.11
7.3.320.0000.00513.07
7.3.310.0030.00316.00
7.3.300.0070.00016.19
7.3.290.0110.00616.20
7.3.280.0090.00916.19
7.3.270.0120.00817.40
7.3.260.0130.00516.34
7.3.250.0120.00716.39
7.3.240.0070.01216.47

preferences:
42.14 ms | 400 KiB | 5 Q