3v4l.org

run code in 300+ PHP versions simultaneously
<?php function error($code, $message, $file = null, $line = 0) { echo "convert error to exception<br>\n"; throw new ErrorException($message, $code, null, $file, $line); } function shutdown() { echo "shutdown function called<br>\n"; } set_error_handler('error'); register_shutdown_function('shutdown'); try { echo $crypto->compress(); } catch (Exception $e) { echo "exception catched<br>\n"; } echo "after fatal error<br>\n";

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.0070.00718.54
8.3.50.0220.00722.01
8.3.40.0110.00318.93
8.3.30.0090.00619.13
8.3.20.0040.00420.30
8.3.10.0040.00421.95
8.3.00.0080.00020.70
8.2.180.0250.00016.71
8.2.170.0040.01122.96
8.2.160.0110.00420.95
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0000.00819.36
8.2.110.0030.00621.88
8.2.100.0080.00317.84
8.2.90.0040.00419.09
8.2.80.0060.00317.97
8.2.70.0000.00917.75
8.2.60.0040.00417.92
8.2.50.0000.00818.07
8.2.40.0030.00918.16
8.2.30.0080.00018.00
8.2.20.0040.00417.63
8.2.10.0040.00419.46
8.2.00.0030.00517.80
8.1.280.0100.00325.92
8.1.270.0000.00722.19
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0040.00423.81
8.1.230.0060.00619.22
8.1.220.0090.00017.74
8.1.210.0030.00618.77
8.1.200.0060.00317.35
8.1.190.0000.00817.52
8.1.180.0080.00018.10
8.1.170.0040.00418.53
8.1.160.0040.00421.94
8.1.150.0070.00018.54
8.1.140.0040.00417.40
8.1.130.0050.00317.82
8.1.120.0070.00017.49
8.1.110.0000.00817.53
8.1.100.0000.00717.49
8.1.90.0080.00017.41
8.1.80.0040.00317.34
8.1.70.0000.00717.43
8.1.60.0040.00417.59
8.1.50.0000.00817.55
8.1.40.0050.00217.45
8.1.30.0040.00417.55
8.1.20.0050.00317.54
8.1.10.0050.00217.60
8.1.00.0040.00417.51
8.0.300.0000.00718.77
8.0.290.0000.00817.05
8.0.280.0030.00318.48
8.0.270.0070.00017.25
8.0.260.0060.00316.86
8.0.250.0060.00016.89
8.0.240.0040.00316.83
8.0.230.0050.00316.97
8.0.220.0030.00516.78
8.0.210.0000.00716.80
8.0.200.0070.00016.86
8.0.190.0000.00716.85
8.0.180.0040.00416.85
8.0.170.0040.00416.91
8.0.160.0050.00216.88
8.0.150.0030.00316.90
8.0.140.0000.00716.96
8.0.130.0030.00313.39
8.0.120.0000.00716.90
8.0.110.0080.00016.92
8.0.100.0070.00016.90
8.0.90.0040.00416.75
8.0.80.0070.01016.97
8.0.70.0030.00416.80
8.0.60.0000.00717.01
8.0.50.0040.00416.76
8.0.30.0130.01017.10
8.0.20.0140.01117.40
8.0.10.0040.00417.11
8.0.00.0070.01016.75
7.4.330.0000.00615.00
7.4.320.0000.00716.49
7.4.300.0060.00316.64
7.4.290.0000.00816.59
7.4.280.0070.00016.48
7.4.270.0030.00316.51
7.4.260.0030.00616.47
7.4.250.0000.00716.39
7.4.240.0040.00416.60
7.4.230.0030.00316.38
7.4.220.0040.01516.46
7.4.210.0100.00416.49
7.4.200.0000.00716.52
7.4.190.0070.00016.60
7.4.160.0040.01116.54
7.4.150.0160.00317.40
7.4.140.0140.00717.86
7.4.130.0130.01116.60
7.4.120.0160.00216.42
7.4.110.0070.01716.63
7.4.100.0090.00916.48
7.4.90.0090.00916.57
7.4.80.0070.01319.39
7.4.70.0060.01216.66
7.4.60.0060.00916.55
7.4.50.0030.00616.55
7.4.40.0130.00322.77
7.4.30.0080.00816.60
7.4.00.0140.00014.76
7.3.330.0030.00313.18
7.3.320.0000.00513.32
7.3.310.0030.00316.24
7.3.300.0070.00016.18
7.3.290.0210.00016.32
7.3.280.0080.01016.30
7.3.270.0150.00317.40
7.3.260.0120.00616.34
7.3.250.0140.00616.37
7.3.240.0060.00916.24
7.3.230.0090.01216.54
7.3.210.0110.00716.48
7.3.200.0060.01219.39
7.3.190.0090.00916.50
7.3.180.0100.00616.36
7.3.170.0160.00016.34
7.3.160.0040.01116.37
7.3.120.0060.01214.70
7.2.330.0130.00316.59
7.2.320.0120.00616.44
7.2.310.0060.00916.36
7.2.300.0100.00716.38
7.2.290.0140.00616.48
7.2.00.0030.00919.24
7.1.100.0080.00317.86
7.1.70.0090.00617.08
7.1.60.0000.02519.82
7.1.50.0030.01716.96
7.1.00.0030.07722.45
7.0.200.0150.00016.86
7.0.140.0030.07322.09
7.0.60.0070.07320.01
7.0.50.0100.05717.88
7.0.40.0070.08720.04
7.0.30.0330.06720.07
7.0.20.0300.04720.36
7.0.10.0130.08020.24
7.0.00.0170.07320.30
5.6.280.0030.07320.86
5.6.210.0030.08320.57
5.6.200.0100.06718.15
5.6.190.0030.07020.77
5.6.180.0070.08020.45
5.6.170.0330.05720.47
5.6.160.0100.05720.43
5.6.150.0070.04018.18
5.6.140.0030.08018.28
5.6.130.0230.06318.21
5.6.120.0030.04321.01
5.6.110.0070.09021.00
5.6.100.0130.08021.00
5.6.90.0030.04021.04
5.6.80.0030.08020.39
5.5.350.0000.06020.42
5.5.340.0070.06017.98
5.5.330.0070.08320.27
5.5.320.0300.05020.27
5.5.310.0230.06720.35
5.5.300.0130.07318.00
5.5.290.0070.08318.00
5.5.280.0030.09020.74
5.5.270.0000.09020.74
5.5.260.0030.04320.65
5.5.250.0070.07320.55
5.5.240.0070.07720.08
5.4.450.0370.04319.39
5.4.440.0400.04019.52
5.4.430.0330.04019.27
5.4.420.0100.04319.54
5.4.410.0100.05318.96
5.4.400.0130.04718.62
5.4.390.0100.05018.50
5.4.380.0030.06318.80
5.4.370.0230.05718.77
5.4.360.0200.05018.56
5.4.350.0130.05718.47
5.4.340.0100.06018.77
5.4.320.0060.03612.50
5.4.310.0100.04912.50
5.4.300.0060.04312.51
5.4.290.0090.04212.51
5.4.280.0100.03212.40
5.4.270.0090.04612.37
5.4.260.0060.05212.37
5.4.250.0090.04612.37
5.4.240.0110.05012.37
5.4.230.0120.04912.36
5.4.220.0080.05012.36
5.4.210.0080.04412.36
5.4.200.0030.04112.36
5.4.190.0040.03912.36
5.4.180.0090.04412.36
5.4.170.0100.04512.37
5.4.160.0120.04412.36
5.4.150.0130.04112.36
5.4.140.0090.03912.04
5.4.130.0080.03712.03
5.4.120.0080.05711.98
5.4.110.0120.04711.99
5.4.100.0100.04511.98
5.4.90.0080.05011.98
5.4.80.0060.03811.99
5.4.70.0060.03711.98
5.4.60.0050.03511.98
5.4.50.0040.03711.98
5.4.40.0080.03411.97
5.4.30.0040.04211.96
5.4.20.0110.04211.96
5.4.10.0050.05111.96
5.4.00.0090.04111.45
5.3.290.0100.03712.80
5.3.280.0070.03812.71
5.3.270.0080.04412.72
5.3.260.0080.04212.72
5.3.250.0080.04412.72
5.3.240.0130.04612.72
5.3.230.0090.04712.71
5.3.220.0100.04812.68
5.3.210.0060.04912.68
5.3.200.0040.03912.68
5.3.190.0010.04312.68
5.3.180.0090.03512.68
5.3.170.0070.04212.67
5.3.160.0080.04112.68
5.3.150.0070.03812.67
5.3.140.0110.03312.66
5.3.130.0080.04612.66
5.3.120.0050.04712.66
5.3.110.0070.03912.65
5.3.100.0050.04612.11
5.3.90.0060.05312.08
5.3.80.0050.04012.07
5.3.70.0090.03712.08
5.3.60.0100.03412.06
5.3.50.0080.03512.00
5.3.40.0080.03612.00
5.3.30.0070.04611.96
5.3.20.0080.03411.74
5.3.10.0050.03511.70
5.3.00.0060.03711.69
5.2.170.0060.0309.19
5.2.160.0040.0319.19
5.2.150.0030.0329.19
5.2.140.0040.0439.18
5.2.130.0070.0409.14
5.2.120.0060.0379.14
5.2.110.0120.0409.15
5.2.100.0050.0429.16
5.2.90.0050.0409.16
5.2.80.0070.0409.15
5.2.70.0050.0429.15
5.2.60.0070.0409.10
5.2.50.0040.0439.07
5.2.40.0030.0369.04
5.2.30.0040.0319.03
5.2.20.0030.0309.02
5.2.10.0040.0298.92
5.2.00.0040.0298.78
5.1.60.0060.0228.06
5.1.50.0040.0378.06
5.1.40.0050.0328.05
5.1.30.0030.0348.40
5.1.20.0070.0318.43
5.1.10.0040.0328.14
5.1.00.0110.0308.14
5.0.50.0070.0226.61
5.0.40.0040.0206.47
5.0.30.0030.0336.29
5.0.20.0040.0196.26
5.0.10.0030.0216.23
5.0.00.0040.0306.23
4.4.90.0040.0144.78
4.4.80.0060.0124.76
4.4.70.0080.0174.76
4.4.60.0050.0154.75
4.4.50.0060.0164.77
4.4.40.0030.0264.70
4.4.30.0020.0164.76
4.4.20.0030.0174.85
4.4.10.0020.0174.85
4.4.00.0050.0234.76
4.3.110.0020.0164.67
4.3.100.0020.0154.66
4.3.90.0040.0134.63
4.3.80.0020.0254.58
4.3.70.0020.0164.63
4.3.60.0030.0154.62
4.3.50.0010.0174.63
4.3.40.0040.0234.53
4.3.30.0040.0143.29
4.3.20.0020.0163.27
4.3.10.0030.0153.23
4.3.00.0070.01315.03

preferences:
40 ms | 401 KiB | 5 Q