3v4l.org

run code in 300+ PHP versions simultaneously
<?php set_error_handler(function($num, $msg, $file, $line) { // Convert to exceptions throw new ErrorException($msg, 0, $num, $file, $line); }); set_exception_handler(function($e) { // Print or log to file echo get_class($e).': '.$e->getMessage().' ['.$e->getFile().':'.$e->getLine().']'; }); try { // Will be caught echo array(); } catch(ErrorException $e) {} // Will not be caught echo array();

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.00718.43
8.3.50.0110.00921.21
8.3.40.0110.00318.80
8.3.30.0090.00618.86
8.3.20.0070.00020.21
8.3.10.0000.00723.66
8.3.00.0050.00322.46
8.2.180.0120.00325.92
8.2.170.0070.00719.07
8.2.160.0070.01122.96
8.2.150.0050.00325.66
8.2.140.0070.00024.66
8.2.130.0040.00426.16
8.2.120.0040.00417.63
8.2.110.0070.00322.29
8.2.100.0060.00617.72
8.2.90.0040.00417.72
8.2.80.0040.00418.16
8.2.70.0000.00818.05
8.2.60.0030.00518.16
8.2.50.0040.00418.10
8.2.40.0000.00920.60
8.2.30.0070.00019.34
8.2.20.0030.00617.87
8.2.10.0040.00417.95
8.2.00.0040.00418.11
8.1.280.0000.01525.92
8.1.270.0080.00020.20
8.1.260.0080.00026.35
8.1.250.0030.00528.09
8.1.240.0030.00619.15
8.1.230.0110.00020.88
8.1.220.0050.00317.74
8.1.210.0000.00818.77
8.1.200.0000.01017.23
8.1.190.0060.00317.23
8.1.180.0000.00818.10
8.1.170.0030.00618.46
8.1.160.0040.00418.96
8.1.150.0040.00418.86
8.1.140.0030.00617.44
8.1.130.0040.00417.82
8.1.120.0040.00417.52
8.1.110.0040.00417.36
8.1.100.0040.00417.47
8.1.90.0000.00817.46
8.1.80.0060.00317.35
8.1.70.0050.00317.37
8.1.60.0030.00617.49
8.1.50.0000.00817.41
8.1.40.0000.00817.41
8.1.30.0000.00817.64
8.1.20.0040.00417.51
8.1.10.0050.00217.59
8.1.00.0000.00817.47
8.0.300.0000.00819.80
8.0.290.0040.00416.75
8.0.280.0000.00718.44
8.0.270.0070.00017.20
8.0.260.0000.00617.30
8.0.250.0030.00316.99
8.0.240.0000.00717.01
8.0.230.0040.00416.98
8.0.220.0030.00316.86
8.0.210.0000.00716.87
8.0.200.0070.00016.99
8.0.190.0000.00717.01
8.0.180.0070.00016.88
8.0.170.0060.00317.04
8.0.160.0000.00717.08
8.0.150.0040.00416.80
8.0.140.0000.00716.80
8.0.130.0000.00613.45
8.0.120.0040.00416.96
8.0.110.0030.00616.95
8.0.100.0040.00417.01
8.0.90.0070.00017.03
8.0.80.0080.00816.98
8.0.70.0040.00416.96
8.0.60.0000.00716.99
8.0.50.0050.00216.84
8.0.30.0130.00517.02
8.0.20.0080.01017.40
8.0.10.0000.00717.01
8.0.00.0070.01116.94
7.4.330.0030.00315.08
7.4.320.0000.00716.51
7.4.300.0030.00316.53
7.4.290.0030.00316.56
7.4.280.0040.00416.61
7.4.270.0030.00316.51
7.4.260.0040.00416.63
7.4.250.0030.00516.55
7.4.240.0040.00416.51
7.4.230.0070.00016.69
7.4.220.0100.00716.56
7.4.210.0070.01116.49
7.4.200.0030.00316.63
7.4.160.0070.01016.39
7.4.150.0140.00317.40
7.4.140.0130.01017.86
7.4.130.0080.01316.52
7.4.120.0120.00516.50
7.4.110.0100.00716.55
7.4.100.0140.00416.48
7.4.90.0120.00616.34
7.4.80.0140.01119.39
7.4.70.0150.00716.59
7.4.60.0130.00416.56
7.4.50.0030.00516.46
7.4.40.0060.01016.58
7.4.30.0110.00816.57
7.4.00.0090.00614.77
7.3.330.0060.00013.45
7.3.320.0060.00013.33
7.3.310.0000.00716.37
7.3.300.0000.00616.42
7.3.290.0070.01016.38
7.3.280.0090.00816.39
7.3.270.0120.00617.40
7.3.260.0120.00616.29
7.3.250.0090.00916.50
7.3.240.0130.00916.30
7.3.230.0100.01316.64
7.3.210.0130.00316.45
7.3.200.0070.01019.39
7.3.190.0150.00316.58
7.3.180.0000.01716.40
7.3.170.0080.00816.31
7.3.160.0060.01316.40
7.2.330.0150.00316.86
7.2.320.0130.00716.37
7.2.310.0140.00616.80
7.2.300.0070.00716.45
7.2.290.0180.00016.63
7.1.70.0060.00317.02
7.1.60.0060.01920.03
7.1.50.0080.00316.56
7.1.00.0070.07322.28
7.0.200.0340.00316.53
7.0.60.0030.05319.95
7.0.50.0100.08017.88
7.0.40.0130.03320.23
7.0.30.0470.07320.07
7.0.20.0270.05020.19
7.0.10.0100.04720.33
7.0.00.0070.05020.12
5.6.280.0070.05320.86
5.6.210.0100.06020.77
5.6.200.0030.07718.15
5.6.190.0030.08720.39
5.6.180.0300.03720.52
5.6.170.0270.06020.69
5.6.160.0030.04720.56
5.6.150.0130.04718.19
5.6.140.0000.05318.25
5.6.130.0030.05018.11
5.6.120.0070.05021.10
5.6.110.0070.04021.12
5.6.100.0100.06021.02
5.6.90.0030.04021.02
5.6.80.0070.06020.45
5.6.70.4400.03320.48
5.5.350.0100.08320.31
5.5.340.0030.03718.05
5.5.330.0130.05320.43
5.5.320.0070.08720.28
5.5.310.0370.06720.27
5.5.300.0000.08318.04
5.5.290.0030.08317.97
5.5.280.0000.04720.78
5.5.270.0030.06020.80
5.5.260.0100.08720.86
5.5.250.0000.04720.57
5.5.240.0330.06320.27
5.4.450.0030.07719.41
5.4.440.0030.04319.21
5.4.430.0030.04719.45
5.4.420.0000.04319.45
5.4.410.0030.04719.38
5.4.400.0070.05018.86
5.4.390.0100.07018.98
5.4.380.0030.08019.32
5.4.370.0070.03718.98
5.4.360.0000.08018.98
5.4.350.0030.07018.91
5.4.340.0100.06719.01
5.4.320.0070.07319.15
5.4.310.0000.06019.14
5.4.300.0030.06019.15
5.4.290.0030.07719.26
5.4.280.0000.05319.18
5.4.270.0030.07019.16
5.4.260.0000.07019.21
5.4.250.0000.06719.14
5.4.240.0070.05719.07
5.4.230.0000.06319.07
5.4.220.0100.04319.25
5.4.210.0100.04018.93
5.4.200.0000.03719.06
5.4.190.0030.03719.25
5.4.180.0000.03719.21
5.4.170.0070.04019.23
5.4.160.0030.03318.96
5.4.150.0000.03718.96
5.4.140.0000.03716.33
5.4.130.0030.03016.45
5.4.120.0000.04016.30
5.4.110.0000.03716.40
5.4.100.0000.03316.45
5.4.90.0000.03716.54
5.4.80.0030.03716.44
5.4.70.0000.03316.55

preferences:
57.17 ms | 401 KiB | 5 Q