3v4l.org

run code in 300+ PHP versions simultaneously
<?php define("ENCRYPTION_KEY", "!@#$%^&*"); $string = "This is the original data string!"; echo $encrypted = encrypt($string, ENCRYPTION_KEY); echo "<br />"; echo $decrypted = decrypt($encrypted, ENCRYPTION_KEY);

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.0100.00718.43
8.3.50.0060.01216.26
8.3.40.0120.00918.64
8.3.30.0110.00418.82
8.3.20.0040.00420.04
8.3.10.0030.00523.42
8.3.00.0000.00819.67
8.2.180.0120.00916.75
8.2.170.0140.00022.96
8.2.160.0140.00020.46
8.2.150.0080.00024.18
8.2.140.0070.00724.66
8.2.130.0000.00726.16
8.2.120.0080.00017.50
8.2.110.0100.00420.70
8.2.100.0120.00519.16
8.2.90.0100.00918.95
8.2.80.0050.01019.23
8.2.70.0100.00518.84
8.2.60.0120.01018.27
8.2.50.0070.01019.12
8.2.40.0060.00920.88
8.2.30.0110.00419.25
8.2.20.0000.01019.11
8.2.10.0090.00318.48
8.2.00.0050.00418.41
8.1.280.0090.01225.92
8.1.270.0140.00320.38
8.1.260.0030.00326.35
8.1.250.0080.00028.09
8.1.240.0110.01119.87
8.1.230.0120.00617.89
8.1.220.0070.00518.20
8.1.210.0200.00219.26
8.1.200.0090.00417.89
8.1.190.0080.01117.68
8.1.180.0100.00318.17
8.1.170.0090.00618.44
8.1.160.0080.00020.33
8.1.150.0090.00118.63
8.1.140.0040.00717.95
8.1.130.0050.00317.95
8.1.120.0040.00617.86
8.1.110.0060.00617.86
8.1.100.0060.00417.74
8.1.90.0070.00718.34
8.1.80.0120.00117.74
8.1.70.0130.00417.80
8.1.60.0120.00717.67
8.1.50.0060.00618.45
8.1.40.0100.00318.51
8.1.30.0120.00717.85
8.1.20.0120.00517.90
8.1.10.0120.00518.21
8.1.00.0130.00218.17
8.0.300.0100.00619.24
8.0.290.0100.00217.22
8.0.280.0150.00517.90
8.0.270.0120.00617.47
8.0.260.0100.00218.40
8.0.250.0110.00518.31
8.0.240.0170.00317.33
8.0.230.0170.00617.36
8.0.220.0100.00417.19
8.0.210.0100.00617.07
8.0.200.0050.00917.86
8.0.190.0120.00417.18
8.0.180.0080.00817.19
8.0.170.0120.00317.23
8.0.160.0110.00417.08
8.0.150.0080.00917.51
8.0.140.0150.00517.06
8.0.130.0110.00716.14
8.0.120.0100.00517.06
8.0.110.0110.00517.19
8.0.100.0090.00717.05
8.0.90.0130.00516.96
8.0.80.0150.00417.08
8.0.70.0120.00717.00
8.0.60.0130.00417.04
8.0.50.0180.00317.08
8.0.30.0140.00717.09
8.0.20.0130.01117.32
8.0.10.0090.00417.16
8.0.00.0050.00817.11
7.4.330.0050.00114.84
7.4.320.0040.00417.94
7.4.300.0100.00317.39
7.4.290.0090.00316.85
7.4.280.0080.00516.75
7.4.270.0090.00616.78
7.4.260.0100.00416.77
7.4.250.0080.00416.75
7.4.240.0040.00716.68
7.4.230.0100.00416.72
7.4.220.0100.00516.75
7.4.210.0090.00316.69
7.4.200.0080.00316.83
7.4.190.0100.00216.90
7.4.180.0090.00416.86
7.4.160.0090.00416.83
7.4.150.0070.00616.96
7.4.140.0090.00817.21
7.4.130.0110.00416.67
7.4.120.0110.00716.70
7.4.110.0160.00716.66
7.4.100.0170.00316.71
7.4.90.0110.00916.71
7.4.80.0180.00217.36
7.4.70.0150.00416.69
7.4.60.0120.00616.71
7.4.50.0130.00516.59
7.4.40.0140.00516.62
7.4.30.0190.00516.65
7.4.20.0070.00916.70
7.4.10.0140.00616.71
7.4.00.0120.00316.84
7.3.330.0110.00215.68
7.3.320.0090.00515.70
7.3.310.0100.00416.40
7.3.300.0120.00316.44
7.3.290.0120.00616.43
7.3.280.0090.00716.45
7.3.270.0140.00716.72
7.3.260.0160.00716.43
7.3.250.0180.00916.47
7.3.240.0170.00416.53
7.3.230.0160.00416.50
7.3.220.0200.00316.56
7.3.210.0170.00616.44
7.3.200.0150.00716.59
7.3.190.0120.00916.48
7.3.180.0160.00616.49
7.3.170.0190.00316.42
7.3.160.0150.00516.43
7.3.150.0150.00516.51
7.3.140.0160.00416.60
7.3.130.0160.00616.42
7.3.120.0110.00616.06
7.3.110.0130.00415.94
7.3.100.0110.00515.99
7.3.90.0090.00616.21
7.3.80.0100.00516.08
7.3.70.0110.00516.08
7.3.60.0130.00416.14
7.3.50.0100.00516.21
7.3.40.0130.00616.20
7.3.30.0090.00816.16
7.3.20.0130.00517.99
7.3.10.0160.00417.85
7.3.00.0120.00617.91
7.2.340.0110.00517.08
7.2.330.0140.00716.51
7.2.320.0160.00716.66
7.2.310.0140.00816.49
7.2.300.0110.01116.39
7.2.290.0150.00716.60
7.2.280.0170.00416.46
7.2.270.0190.00516.52
7.2.260.0160.00616.50
7.2.250.0130.01016.53
7.2.240.0120.00716.05
7.2.230.0110.00616.11
7.2.220.0110.00516.17
7.2.210.0110.00516.10
7.2.200.0120.00616.29
7.2.190.0100.00616.27
7.2.180.0140.00816.17
7.2.170.0130.00616.28
7.2.160.0130.00816.30
7.2.150.0110.00518.21
7.2.140.0170.00518.19
7.2.130.0110.00818.17
7.2.120.0160.00718.16
7.2.110.0150.00718.08
7.2.100.0140.00918.19
7.2.90.0150.00718.09
7.2.80.0120.00518.04
7.2.70.0160.00518.21
7.2.60.0110.00917.89
7.2.50.0160.00618.14
7.2.40.0160.00518.22
7.2.30.0160.00518.17
7.2.20.0150.00618.08
7.2.10.0140.00618.14
7.2.00.0090.00418.38
7.1.330.0070.00817.05
7.1.320.0140.00817.04
7.1.310.0160.00316.99
7.1.300.0130.00517.07
7.1.290.0130.00617.05
7.1.280.0130.00717.05
7.1.270.0080.00817.00
7.1.260.0130.00417.05
7.1.250.0100.00417.07
7.1.240.0120.00417.50
7.1.230.0120.00317.45
7.1.220.0100.00817.39
7.1.210.0180.00417.54
7.1.200.0150.00317.10
7.1.190.0180.00217.58
7.1.180.0200.00117.49
7.1.170.0150.00617.45
7.1.160.0100.00617.43
7.1.150.0170.00617.49
7.1.140.0160.00517.34
7.1.130.0170.00517.39
7.1.120.0150.00517.46
7.1.110.0100.00917.46
7.1.100.0110.00517.58
7.1.90.0160.00517.52
7.1.80.0140.00717.47
7.1.70.0110.00617.21
7.1.60.0110.00818.18
7.1.50.0120.00617.36
7.1.40.0130.00517.56
7.1.30.0120.00717.54
7.1.20.0160.00217.53
7.1.10.0080.00717.45
7.1.00.0070.02518.69
7.0.330.0100.00517.13
7.0.320.0140.00117.11
7.0.310.0100.00517.19
7.0.300.0120.00317.20
7.0.290.0120.00317.25
7.0.280.0100.00617.07
7.0.270.0130.00217.20
7.0.260.0130.00317.14
7.0.250.0110.00717.27
7.0.240.0160.00517.41
7.0.230.0170.00417.39
7.0.220.0180.00217.31
7.0.210.0150.00517.22
7.0.200.0150.00317.08
7.0.190.0180.00217.27
7.0.180.0190.00217.30
7.0.170.0150.00617.33
7.0.160.0150.00617.26
7.0.150.0180.00317.20
7.0.140.0150.00517.19
7.0.130.0160.00417.20
7.0.120.0140.00417.27
7.0.110.0110.00417.17
7.0.100.0160.00417.21
7.0.90.0090.00617.07
7.0.80.0110.00517.08
7.0.70.0120.00217.25
7.0.60.0100.02317.79
7.0.50.0130.02317.25
7.0.40.0090.01517.88
7.0.30.0110.02117.94
7.0.20.0190.00817.88
7.0.10.0170.02217.81
7.0.00.0130.01918.03
5.6.400.0120.00715.99
5.6.390.0160.00515.98
5.6.380.0150.00415.99
5.6.370.0160.00415.99
5.6.360.0140.00615.88
5.6.350.0130.00815.88
5.6.340.0160.00515.88
5.6.330.0160.00415.99
5.6.320.0120.00715.93
5.6.310.0130.00316.01
5.6.300.0140.00615.78
5.6.290.0140.00715.99
5.6.280.0080.01417.25
5.6.270.0160.00316.06
5.6.260.0130.00315.98
5.6.250.0070.00715.85
5.6.240.0140.00715.96
5.6.230.0080.00615.96
5.6.220.0130.00816.07
5.6.210.0100.01817.26
5.6.200.0130.02516.51
5.6.190.0170.01917.12
5.6.180.0180.01417.14
5.6.170.0190.01217.12
5.6.160.0130.01517.21
5.6.150.0130.01416.63
5.6.140.0130.02516.52
5.6.130.0140.01716.56
5.6.120.0120.01517.30
5.6.110.0090.02017.31
5.6.100.0120.01917.26
5.6.90.0130.02517.23
5.6.80.0140.02117.03
5.6.70.0110.00416.14
5.6.60.0110.00516.07
5.6.50.0120.00415.83
5.6.40.0110.00415.91
5.6.30.0120.00415.93
5.6.20.0140.00415.85
5.6.10.0110.00515.98
5.6.00.0130.00615.98
5.5.380.0140.00016.03
5.5.370.0110.00316.04
5.5.360.0120.00415.81
5.5.350.0960.01217.00
5.5.340.0160.01916.45
5.5.330.0130.02017.00
5.5.320.0180.01416.96
5.5.310.0190.01917.02
5.5.300.0120.01416.33
5.5.290.0120.01316.53
5.5.280.0130.02417.18
5.5.270.0090.01417.16
5.5.260.0080.02217.20
5.5.250.0150.02217.12
5.5.240.0100.01417.02
5.5.230.0090.00515.88
5.5.220.0130.00115.97
5.5.210.0150.00516.00
5.5.200.0170.00315.69
5.5.190.0110.00315.80
5.5.180.0110.00315.80
5.5.170.0070.00715.90
5.5.160.0140.00615.87
5.5.150.0140.00415.68
5.5.140.0130.00415.71
5.5.130.0100.00415.71
5.5.120.0140.00515.62
5.5.110.0130.00515.62
5.5.100.0100.00615.93
5.5.90.0080.00716.02
5.5.80.0080.00416.01
5.5.70.0120.00415.99
5.5.60.0110.00315.98
5.5.50.0060.00715.96
5.5.40.0070.00715.89
5.5.30.0090.00415.95
5.5.20.0070.00415.94
5.5.10.0110.00415.69
5.5.00.0110.00615.79
5.4.450.0180.01414.53
5.4.440.0160.01814.57
5.4.430.0180.01614.64
5.4.420.0170.01614.60
5.4.410.0150.01614.55
5.4.400.0160.01414.48
5.4.390.0170.01714.50
5.4.380.0150.01714.43
5.4.370.0130.01914.44
5.4.360.0190.01514.47
5.4.350.0140.01814.41
5.4.340.0160.02014.50
5.4.330.0080.00412.94
5.4.320.0180.01714.52
5.4.310.0210.01314.50
5.4.300.0180.02114.52
5.4.290.0160.01614.52
5.4.280.0190.01514.50
5.4.270.0190.01614.51
5.4.260.0150.01714.47
5.4.250.0190.01414.46
5.4.240.0170.01614.48
5.4.230.0170.01514.41
5.4.220.0190.01414.32
5.4.210.0120.02014.31
5.4.200.0170.01614.38
5.4.190.0160.01614.34
5.4.180.0180.01614.42
5.4.170.0180.01414.37
5.4.160.0140.01614.30
5.4.150.0200.01714.42
5.4.140.0170.01513.71
5.4.130.0180.01213.80
5.4.120.0170.01413.84
5.4.110.0130.01713.76
5.4.100.0130.01813.81
5.4.90.0150.01413.76
5.4.80.0150.01513.76
5.4.70.0080.01213.80
5.4.60.0080.01213.86
5.4.50.0100.01513.74
5.4.40.0120.01613.75
5.4.30.0040.01213.73
5.4.20.0100.01713.72
5.4.10.0080.01813.83
5.4.00.0080.00212.89

preferences:
46.08 ms | 400 KiB | 5 Q