3v4l.org

run code in 300+ PHP versions simultaneously
<?php function exception_error_handler($errno, $errstr, $errfile, $errline ) { throw new Exception('Hello world'); } set_error_handler("exception_error_handler"); try { // try loading a file that does not have exif data: $results = @require 'does-not-exist.php'; } catch (Exception $e) { echo $e->getMessage(); // "We never get here..." };

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.70.0180.00016.75
8.3.60.0070.01418.31
8.3.50.0110.00921.88
8.3.40.0040.01219.02
8.3.30.0070.00718.97
8.3.20.0080.00020.38
8.3.10.0080.00021.55
8.3.00.0080.00019.51
8.2.190.0090.00616.58
8.2.180.0110.00416.50
8.2.170.0040.01122.96
8.2.160.0100.00320.52
8.2.150.0050.00224.18
8.2.140.0040.00424.66
8.2.130.0000.00722.25
8.2.120.0070.00026.35
8.2.110.0090.00019.45
8.2.100.0110.00017.78
8.2.90.0030.00517.91
8.2.80.0030.00519.20
8.2.70.0050.00317.63
8.2.60.0040.00417.63
8.2.50.0050.00317.55
8.2.40.0040.00419.35
8.2.30.0040.00419.26
8.2.20.0000.00717.64
8.2.10.0040.00418.18
8.2.00.0000.00717.95
8.1.280.0100.01025.92
8.1.270.0040.00423.81
8.1.260.0000.00828.09
8.1.250.0040.00428.09
8.1.240.0060.00321.95
8.1.230.0040.00820.96
8.1.220.0040.00417.74
8.1.210.0060.00318.95
8.1.200.0040.00417.35
8.1.190.0030.00617.23
8.1.180.0030.00518.10
8.1.170.0040.00417.66
8.1.160.0060.00322.15
8.1.150.0070.00018.89
8.1.140.0040.00419.50
8.1.130.0050.00217.71
8.1.120.0030.00617.52
8.1.110.0040.00417.48
8.1.100.0040.00417.46
8.1.90.0050.00317.50
8.1.80.0000.00817.37
8.1.70.0040.00417.31
8.1.60.0000.00817.59
8.1.50.0030.00517.66
8.1.40.0000.00817.48
8.1.30.0000.00817.64
8.1.20.0040.00417.66
8.1.10.0030.00617.56
8.1.00.0000.00817.60
8.0.300.0050.00220.08
8.0.290.0110.00016.75
8.0.280.0030.00518.57
8.0.270.0000.00817.27
8.0.260.0000.00717.33
8.0.250.0040.00417.14
8.0.240.0000.00716.98
8.0.230.0000.00817.08
8.0.220.0000.00717.01
8.0.210.0080.00017.07
8.0.200.0030.00316.96
8.0.190.0000.00817.07
8.0.180.0000.00817.04
8.0.170.0060.00317.09
8.0.160.0000.00717.04
8.0.150.0030.00517.10
8.0.140.0080.00016.88
8.0.130.0030.00313.39
8.0.120.0000.01016.89
8.0.110.0040.00417.04
8.0.100.0040.00416.94
8.0.90.0040.00417.00
8.0.80.0190.00317.05
8.0.70.0040.00416.89
8.0.60.0000.00716.83
8.0.50.0000.00816.93
8.0.30.0110.00816.98
8.0.20.0110.00817.40
8.0.10.0000.00716.92
8.0.00.0070.01016.72
7.4.330.0000.00715.08
7.4.320.0030.00316.63
7.4.300.0040.00416.50
7.4.290.0040.00416.59
7.4.280.0000.00916.52
7.4.270.0000.00716.63
7.4.260.0000.00716.46
7.4.250.0030.00316.58
7.4.240.0000.00716.63
7.4.230.0000.00716.72
7.4.220.0080.00816.60
7.4.210.0090.00616.68
7.4.200.0040.00416.71
7.4.160.0060.01016.69
7.4.150.0070.01017.40
7.4.140.0130.00517.86
7.4.130.0120.00516.49
7.4.120.0130.00616.62
7.4.110.0100.00716.44
7.4.100.0070.01016.68
7.4.90.0070.01016.59
7.4.80.0140.00819.39
7.4.70.0100.00716.50
7.4.60.0040.01316.41
7.4.50.0040.01116.47
7.4.40.0070.01016.60
7.4.30.0060.01316.57
7.4.10.0120.00615.20
7.4.00.0080.01014.90
7.3.330.0000.00613.23
7.3.320.0000.00513.43
7.3.310.0070.00016.43
7.3.300.0000.00816.46
7.3.290.0070.00716.36
7.3.280.0100.01016.37
7.3.270.0140.00717.40
7.3.260.0100.00716.56
7.3.250.0080.00916.47
7.3.240.0080.00916.42
7.3.230.0070.01016.39
7.3.210.0000.01816.45
7.3.200.0140.00316.48
7.3.190.0120.00416.27
7.3.180.0130.01216.53
7.3.170.0110.00716.41
7.3.160.0110.01116.69
7.3.130.0090.00614.61
7.3.120.0120.00614.81
7.3.110.0100.00714.72
7.3.100.0090.00614.90
7.3.90.0080.00514.80
7.3.80.0020.00814.88
7.3.70.0050.00714.90
7.3.60.0090.00414.86
7.3.50.0040.00814.78
7.3.40.0060.01214.67
7.3.30.0080.00614.88
7.3.20.0050.00816.64
7.3.10.0090.00616.62
7.3.00.0060.00716.54
7.2.330.0090.01316.64
7.2.320.0130.00716.70
7.2.310.0030.01416.70
7.2.300.0070.01016.68
7.2.290.0060.01616.66
7.2.260.0060.01215.24
7.2.250.0130.00715.09
7.2.240.0090.00614.98
7.2.230.0040.01015.04
7.2.220.0050.00815.11
7.2.210.0070.00915.00
7.2.200.0030.00814.90
7.2.190.0050.01014.96
7.2.180.0080.00714.97
7.2.170.0070.00815.09
7.2.160.0070.00715.01
7.2.150.0070.00716.91
7.2.140.0040.01216.85
7.2.130.0050.00817.00
7.2.120.0100.00616.87
7.2.110.0060.00616.81
7.2.100.0070.00816.88
7.2.90.0080.00816.95
7.2.80.0090.00616.92
7.2.70.0100.00617.01
7.2.60.0060.00816.82
7.2.50.0070.00816.90
7.2.40.0080.00716.93
7.2.30.0070.00716.85
7.2.20.0080.00416.90
7.2.10.0050.00816.81
7.2.00.0090.00717.47
7.1.330.0070.00715.66
7.1.320.0050.00915.89
7.1.310.0030.00915.67
7.1.300.0070.00515.80
7.1.290.0050.00815.77
7.1.280.0060.00715.64
7.1.270.0090.00615.57
7.1.260.0070.00915.74
7.1.250.0060.00815.73
7.1.240.0090.00315.75
7.1.230.0040.00515.74
7.1.220.0020.00915.75
7.1.210.0030.00815.83
7.1.200.0070.00415.66
7.1.190.0050.00815.84
7.1.180.0060.01015.92
7.1.170.0080.00515.70
7.1.160.0110.00515.83
7.1.150.0020.01215.80
7.1.140.0030.01015.83
7.1.130.0100.00515.80
7.1.120.0030.00815.74
7.1.110.0090.00315.91
7.1.100.0030.01015.58
7.1.90.0050.00715.55
7.1.80.0080.00315.82
7.1.70.0050.00616.18
7.1.60.0080.00317.06
7.1.50.0030.00915.81
7.1.40.0030.00715.94
7.1.30.0060.00515.75
7.1.20.0050.00715.63
7.1.10.0100.00415.70
7.1.00.0040.03317.94
7.0.330.0090.00515.33
7.0.320.0040.01015.27
7.0.310.0020.00815.42
7.0.300.0060.00515.38
7.0.290.0060.00515.43
7.0.280.0080.00515.34
7.0.270.0020.01115.26
7.0.260.0070.00715.33
7.0.250.0050.00815.54
7.0.240.0070.00715.40
7.0.230.0050.00915.49
7.0.220.0070.00715.54
7.0.210.0040.01015.27
7.0.200.0110.00915.28
7.0.190.0080.00315.50
7.0.180.0090.00415.36
7.0.170.0050.00815.24
7.0.160.0070.00515.29
7.0.150.0060.00715.42
7.0.140.0000.00915.24
7.0.130.0050.01015.20
7.0.120.0050.00515.51
7.0.110.0050.00715.36
7.0.100.0060.01015.35
7.0.90.0090.00515.33
7.0.80.0140.02816.80
7.0.70.0080.02217.03
7.0.60.0150.01816.81
7.0.50.0060.02717.05
7.0.40.0090.02415.63
7.0.30.0130.02115.66
7.0.20.0080.02815.71
7.0.10.0140.02015.78
7.0.00.0090.02715.73
5.6.400.0080.00614.22
5.6.390.0020.00914.35
5.6.380.0050.00814.40
5.6.370.0070.00514.29
5.6.360.0090.00714.43
5.6.350.0070.00514.33
5.6.340.0040.01014.45
5.6.330.0100.00614.41
5.6.320.0060.00714.43
5.6.310.0040.00614.29
5.6.300.0060.00314.26
5.6.290.0040.00814.18
5.6.280.0050.02916.59
5.6.270.0060.00714.33
5.6.260.0000.01314.30
5.6.250.0080.00814.51
5.6.240.0050.00714.48
5.6.230.0080.02516.47
5.6.220.0090.02216.44
5.6.210.0050.02816.44
5.6.200.0090.02416.60
5.6.190.0090.02216.57
5.6.180.0090.02316.42
5.6.170.0100.02216.46
5.6.160.0110.02216.45
5.6.150.0080.02416.38
5.6.140.0080.02416.54
5.6.130.0070.02716.64
5.6.120.0080.02716.49
5.6.110.0040.02716.53
5.6.100.0070.02116.48
5.6.90.0080.02316.47
5.6.80.0070.02316.35
5.6.70.0090.02116.20
5.6.60.0030.02616.31
5.6.50.0090.02216.33
5.6.40.0130.01916.17
5.6.30.0090.02316.31
5.6.20.0080.02416.40
5.6.10.0060.02316.28
5.6.00.0130.01916.20
5.5.380.0060.00714.27
5.5.370.0070.02516.32
5.5.360.0100.03316.29
5.5.350.0070.02416.31
5.5.340.0100.02016.51
5.5.330.0030.02616.48
5.5.320.0060.02916.49
5.5.310.0030.03116.55
5.5.300.0100.02116.18
5.5.290.0120.02316.46
5.5.280.0080.02616.39
5.5.270.0140.01916.57
5.5.260.0030.02816.52
5.5.250.0070.02516.27
5.5.240.0070.02416.25
5.5.230.0070.02516.27
5.5.220.0040.02616.13
5.5.210.0130.01716.11
5.5.200.0060.02616.18
5.5.190.0120.02016.13
5.5.180.0050.02816.16
5.5.170.0070.00614.08
5.5.160.0100.02216.27
5.5.150.0040.02916.20
5.5.140.0110.02616.29
5.5.130.0090.02716.13
5.5.120.0110.02216.15
5.5.110.0060.02616.13
5.5.100.0090.02416.16
5.5.90.0080.02516.15
5.5.80.0090.02116.20
5.5.70.0050.02516.05
5.5.60.0110.01816.23
5.5.50.0100.02216.11
5.5.40.0080.02816.17
5.5.30.0070.02716.15
5.5.20.0080.02516.09
5.5.10.0060.02316.13
5.5.00.0100.02016.07

preferences:
66.93 ms | 401 KiB | 5 Q