3v4l.org

run code in 300+ PHP versions simultaneously
<?php ini_set('max_execution_time', 300); $string = 'SELECT * FROM jokes WHERE joke LIKE'; foreach (mcrypt_list_algorithms() as $algo) { for ($i=1; $i<strlen($string); $i++) { $substr = substr($string, 0, 10+$i); echo $substr . ' => '; $r = base64_encode(mcrypt_encrypt($algo, 'mep', $substr, 'ecb')); /*if (strpos($r, 'G+') === 0)*/ echo $r . PHP_EOL; } }

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.0110.00418.56
8.3.50.0100.00719.55
8.3.40.0070.00718.66
8.3.30.0070.00718.57
8.3.20.0000.00721.95
8.3.10.0050.00320.57
8.3.00.0050.00321.97
8.2.180.0170.00316.63
8.2.170.0070.00722.96
8.2.160.0030.01022.07
8.2.150.0000.00824.18
8.2.140.0080.00024.66
8.2.130.0080.00019.54
8.2.120.0040.00426.35
8.2.110.0060.00620.89
8.2.100.0090.00317.91
8.2.90.0030.00519.15
8.2.80.0040.00418.05
8.2.70.0000.00817.63
8.2.60.0050.00317.80
8.2.50.0030.00618.10
8.2.40.0000.00820.55
8.2.30.0040.00419.07
8.2.20.0000.01017.88
8.2.10.0070.00018.00
8.2.00.0040.00417.67
8.1.280.0100.00725.92
8.1.270.0050.00323.68
8.1.260.0050.00326.35
8.1.250.0050.00328.09
8.1.240.0090.00023.80
8.1.230.0030.00717.82
8.1.220.0030.00617.74
8.1.210.0060.00318.77
8.1.200.0000.00917.38
8.1.190.0000.00817.22
8.1.180.0050.00218.10
8.1.170.0040.00418.51
8.1.160.0000.00718.90
8.1.150.0070.00020.31
8.1.140.0000.00719.57
8.1.130.0000.00719.02
8.1.120.0050.00317.46
8.1.110.0000.00817.28
8.1.100.0060.00317.30
8.1.90.0030.00517.45
8.1.80.0060.00317.39
8.1.70.0000.00717.26
8.1.60.0000.00917.53
8.1.50.0050.00317.54
8.1.40.0040.00417.52
8.1.30.0040.00417.66
8.1.20.0000.00817.67
8.1.10.0050.00217.45
8.1.00.0000.00817.40
8.0.300.0070.00018.77
8.0.290.0030.00516.63
8.0.280.0070.00018.39
8.0.270.0030.00317.14
8.0.260.0000.00617.12
8.0.250.0040.00416.90
8.0.240.0030.00616.91
8.0.230.0000.00716.84
8.0.220.0060.00316.77
8.0.210.0070.00016.80
8.0.200.0000.00616.90
8.0.190.0030.00516.99
8.0.180.0000.00716.85
8.0.170.0040.00416.96
8.0.160.0030.00316.84
8.0.150.0030.00316.87
8.0.140.0000.00716.81
8.0.130.0050.00013.33
8.0.120.0030.00516.87
8.0.110.0070.00016.90
8.0.100.0030.00516.78
8.0.90.0070.00016.71
8.0.80.0150.00316.80
8.0.70.0040.00416.89
8.0.60.0040.00416.77
8.0.50.0000.00716.88
8.0.30.0120.00717.01
8.0.20.0120.00717.40
8.0.10.0050.00317.04
8.0.00.0090.00916.74
7.4.330.0000.00615.55
7.4.320.0030.00316.60
7.4.300.0000.00616.44
7.4.290.0070.00016.44
7.4.280.0050.00316.49
7.4.270.0000.00716.46
7.4.260.0030.00316.61
7.4.250.0030.00316.60
7.4.240.0000.00716.48
7.4.230.0030.00316.61
7.4.220.0210.00416.69
7.4.210.0070.00716.61
7.4.200.0000.00716.73
7.4.160.0070.00916.55
7.4.150.0070.01017.40
7.4.140.0110.00917.86
7.4.130.0080.01216.51
7.4.120.0100.01016.55
7.4.110.0070.01316.61
7.4.100.0050.01316.55
7.4.90.0170.00016.52
7.4.80.0100.01319.39
7.4.70.0080.00916.53
7.4.60.0150.00016.65
7.4.50.0070.01016.66
7.4.40.0140.00316.45
7.4.30.0070.01016.59
7.4.10.0100.01016.34
7.4.00.0100.00815.73
7.3.330.0030.00313.04
7.3.320.0050.00013.03
7.3.310.0000.00716.32
7.3.300.0060.00016.34
7.3.290.0070.00716.34
7.3.280.0050.01316.30
7.3.270.0070.01017.40
7.3.260.0120.01216.40
7.3.250.0090.00816.42
7.3.240.0140.00516.35
7.3.230.0100.01016.23
7.3.210.0120.00316.32
7.3.200.0090.00916.32
7.3.190.0100.00616.50
7.3.180.0070.01116.35
7.3.170.0060.01116.40
7.3.160.0170.00016.45
7.3.130.0070.01016.51
7.3.120.0070.01016.35
7.3.110.0090.00616.32
7.3.100.0120.00616.33
7.3.90.0090.00616.21
7.3.80.0030.00616.39
7.3.70.0080.00316.38
7.3.60.0000.01916.18
7.3.50.0060.00616.17
7.3.40.0130.00016.13
7.3.30.0040.01116.16
7.3.20.0080.00818.05
7.3.10.0050.00717.33
7.3.00.0050.00917.31
7.2.330.0110.01416.23
7.2.320.0130.00616.56
7.2.310.0120.00616.23
7.2.300.0100.00716.51
7.2.290.0100.00616.23
7.2.260.0130.00716.22
7.2.250.0090.00616.27
7.2.240.0110.00716.27
7.2.230.0060.00916.59
7.2.220.0090.00316.43
7.2.210.0030.00916.28
7.2.200.0080.00616.25
7.2.190.0030.00716.34
7.2.180.0040.00816.48
7.2.170.0030.01316.23
7.2.160.0100.00716.52
7.2.150.0030.00718.29
7.2.140.0040.00718.05
7.2.130.0060.00617.51
7.2.120.0090.00717.43
7.2.110.0040.00917.36
7.2.100.0030.01117.43
7.2.90.0150.00217.47
7.2.80.0080.00617.42
7.2.70.0050.00617.48
7.2.60.0080.00517.32
7.2.50.0070.00717.45
7.2.40.0010.00917.57
7.2.30.0000.01417.39
7.2.20.0060.00617.54
7.2.10.0070.00617.51
7.2.00.0070.00617.98
7.1.330.0100.00717.33
7.1.320.0030.00917.27
7.1.310.0030.00717.25
7.1.300.0040.00817.24
7.1.290.0000.00917.18
7.1.280.0040.01117.34
7.1.270.0000.01217.30
7.1.260.0000.00917.21
7.1.250.0030.00816.34
7.1.240.0040.01217.13
7.1.230.0030.01017.07
7.1.220.0060.00617.18
7.1.210.0140.00017.03
7.1.200.0120.00516.27
7.1.190.0040.00817.21
7.1.180.0090.00616.97
7.1.170.0170.00317.19
7.1.160.0050.00516.95
7.1.150.0050.00517.11
7.1.140.0120.00617.28
7.1.130.0150.00317.11
7.1.120.0060.00317.18
7.1.110.0040.01017.17
7.1.100.0030.00817.63
7.1.90.0030.01017.16
7.1.80.0070.00717.10
7.1.70.0030.00617.07
7.1.60.0030.01317.00
7.1.50.0090.01117.07
7.1.40.0100.00017.16
7.1.30.0030.01317.18
7.1.20.0000.01117.36
7.1.10.0070.03819.58
7.1.00.0050.03519.65
7.0.330.0030.01216.87
7.0.320.0000.01216.82
7.0.310.0060.00916.82
7.0.300.0080.00916.89
7.0.290.0060.00316.84
7.0.280.0000.00916.76
7.0.270.0040.01416.77
7.0.260.0060.00616.99
7.0.250.0080.00816.95
7.0.240.0130.00017.04
7.0.230.0070.00316.73
7.0.220.0060.00916.90
7.0.210.0000.01517.02
7.0.200.0090.01016.77
7.0.190.0100.00716.75
7.0.180.0080.00616.82
7.0.170.0090.00616.98
7.0.160.0060.00916.94
7.0.150.0050.03719.32
7.0.140.0070.03119.38
7.0.130.0080.03219.34
7.0.120.0090.03319.39
7.0.110.0070.04819.39
7.0.100.0080.03319.39
7.0.90.0050.03519.41
7.0.80.0070.03119.26
7.0.70.0050.03319.30
7.0.60.0100.03219.28
7.0.50.0090.03019.35
7.0.40.0100.03018.45
7.0.30.0050.03218.46
7.0.20.0060.03318.24
7.0.10.0090.03018.28
7.0.00.0030.03318.30
5.6.400.0030.01015.60
5.6.390.0030.01315.35
5.6.380.0150.00315.88
5.6.370.0060.00815.59
5.6.360.0090.00915.85
5.6.350.0040.00815.75
5.6.340.0040.01115.73
5.6.330.0140.00315.73
5.6.320.0030.01315.66
5.6.310.0090.00915.71
5.6.300.0000.01615.45
5.6.290.0000.01215.68
5.6.280.0070.00715.57
5.6.270.0080.00415.57
5.6.260.0070.00315.66
5.6.250.0040.00715.50
5.6.240.0040.00815.57
5.6.230.0070.00715.66
5.6.220.0070.01015.73
5.6.210.0030.00915.43
5.6.200.0070.01115.56
5.6.190.0100.00715.55
5.6.180.0040.01115.75
5.6.170.0000.00915.47
5.6.160.0100.00715.47
5.6.150.0000.01115.52
5.6.140.0100.01015.59
5.6.130.0040.01415.60
5.6.120.0120.00715.66
5.6.110.0050.00515.41
5.6.100.0040.00815.61
5.6.90.0030.01015.57
5.6.80.0040.00815.57
5.6.70.0040.00815.43
5.6.60.0060.00615.54
5.6.50.0090.00315.94
5.6.40.0060.00615.50
5.6.30.0070.01015.46
5.6.20.0070.01015.59
5.6.10.0040.00815.67
5.6.00.0040.01115.46

preferences:
58.65 ms | 401 KiB | 5 Q