3v4l.org

run code in 300+ PHP versions simultaneously
<?php /* final public ExceptionException::getPrevious ( void ) final public stringException::getFile ( void ) final private voidException::__clone ( void ) */ error_reporting(E_ALL); function exception_error_handler($errno, $errstr, $errfile, $errline ) { throw new ErrorException($errstr, '00007600', $errno, $errfile, $errline); } set_error_handler("exception_error_handler"); try { echo $x; } catch(Exception $e) { echo 'exception \'' . get_class($e) . '\' with message \'' . $e->getMessage() . '\' in \'' . $e->getFile() . '\':' . $e->getLine() . PHP_EOL; echo $e->getTraceAsString(); echo PHP_EOL . '-----------------------' . PHP_EOL; echo $e->__toString(); }

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.55
8.3.50.0090.01121.21
8.3.40.0040.01118.83
8.3.30.0070.00720.03
8.3.20.0000.00720.30
8.3.10.0070.00021.92
8.3.00.0040.00422.52
8.2.180.0110.00416.88
8.2.170.0070.00722.96
8.2.160.0100.00322.11
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0070.00026.16
8.2.120.0040.00420.93
8.2.110.0060.00322.16
8.2.100.0120.00018.03
8.2.90.0040.00419.23
8.2.80.0040.00419.31
8.2.70.0030.00517.50
8.2.60.0040.00418.04
8.2.50.0000.00818.07
8.2.40.0040.00418.34
8.2.30.0080.00319.43
8.2.20.0040.00417.77
8.2.10.0000.00717.75
8.2.00.0030.00717.79
8.1.280.0160.00025.92
8.1.270.0000.00723.99
8.1.260.0030.00526.35
8.1.250.0080.00028.09
8.1.240.0040.00423.83
8.1.230.0000.01118.97
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0060.00317.35
8.1.190.0000.00817.53
8.1.180.0040.00418.84
8.1.170.0040.00418.64
8.1.160.0040.00418.87
8.1.150.0030.00518.65
8.1.140.0070.00017.53
8.1.130.0040.00417.88
8.1.120.0000.00717.49
8.1.110.0000.00817.52
8.1.100.0060.00317.37
8.1.90.0040.00417.46
8.1.80.0040.00417.47
8.1.70.0000.00717.46
8.1.60.0030.00617.63
8.1.50.0000.00717.53
8.1.40.0030.00617.42
8.1.30.0040.00417.56
8.1.20.0040.00417.66
8.1.10.0040.00417.61
8.1.00.0030.00517.39
8.0.300.0040.00418.77
8.0.290.0000.00717.04
8.0.280.0000.00718.39
8.0.270.0070.00017.28
8.0.260.0000.00716.82
8.0.250.0070.00017.10
8.0.240.0000.00916.94
8.0.230.0040.00417.03
8.0.220.0000.00716.84
8.0.210.0030.00316.86
8.0.200.0020.00517.05
8.0.190.0040.00417.01
8.0.180.0070.00016.99
8.0.170.0050.00317.00
8.0.160.0030.00317.04
8.0.150.0030.00717.02
8.0.140.0000.00816.84
8.0.130.0060.00013.41
8.0.120.0040.00416.81
8.0.110.0000.00816.80
8.0.100.0050.00216.90
8.0.90.0050.00316.86
8.0.80.0120.00616.89
8.0.70.0050.00316.89
8.0.60.0040.00417.04
8.0.50.0000.00716.87
8.0.30.0130.01017.28
8.0.20.0140.00817.40
8.0.10.0040.00417.05
8.0.00.0070.01216.94
7.4.330.0050.00015.00
7.4.320.0000.00616.43
7.4.300.0000.00716.61
7.4.290.0030.00316.41
7.4.280.0040.00416.61
7.4.270.0030.00316.68
7.4.260.0030.00313.40
7.4.250.0040.00416.56
7.4.240.0040.00416.66
7.4.230.0000.00716.70
7.4.220.0100.01016.52
7.4.210.0100.00616.65
7.4.200.0000.00716.70
7.4.190.0000.00716.67
7.4.160.0060.01216.63
7.4.150.0030.01717.40
7.4.140.0090.00917.86
7.4.130.0120.00616.56
7.4.120.0060.01216.65
7.4.110.0100.01016.54
7.4.100.0100.01316.63
7.4.90.0090.00916.58
7.4.80.0120.00619.39
7.4.70.0080.00816.46
7.4.60.0160.00716.47
7.4.50.0000.00916.52
7.4.40.0110.00722.77
7.4.30.0100.00616.52
7.4.10.0110.00714.95
7.4.00.0050.01315.00
7.3.330.0050.00013.45
7.3.320.0030.00213.29
7.3.310.0000.00716.54
7.3.300.0000.00716.37
7.3.290.0130.00616.43
7.3.280.0050.01116.43
7.3.270.0110.00617.40
7.3.260.0090.01216.36
7.3.250.0110.00916.49
7.3.240.0110.00716.50
7.3.230.0130.00316.56
7.3.210.0160.00016.56
7.3.200.0070.01019.39
7.3.190.0100.00716.48
7.3.180.0030.01716.50
7.3.170.0120.00316.63
7.3.160.0100.00716.64
7.3.130.0130.00614.87
7.3.120.0100.00714.86
7.3.110.0100.00715.04
7.3.100.0110.00314.84
7.3.90.0040.00515.00
7.3.80.0070.00714.97
7.3.70.0040.00814.85
7.3.60.0070.00714.83
7.3.50.0060.01014.74
7.3.40.0070.00414.89
7.3.30.0020.01214.96
7.3.20.0030.01116.76
7.3.10.0050.00816.74
7.3.00.0080.00616.66
7.2.330.0120.00616.64
7.2.320.0090.01516.46
7.2.310.0090.00916.86
7.2.300.0140.00316.40
7.2.290.0070.01016.66
7.2.260.0070.01015.20
7.2.250.0030.01314.92
7.2.240.0040.01215.01
7.2.230.0040.01115.11
7.2.220.0060.00515.13
7.2.210.0030.00915.01
7.2.200.0040.00815.03
7.2.190.0030.01314.85
7.2.180.0040.00915.01
7.2.170.0030.01115.08
7.2.160.0070.00715.05
7.2.150.0070.00416.92
7.2.140.0090.00616.93
7.2.130.0060.00716.88
7.2.120.0100.00416.76
7.2.110.0120.00516.81
7.2.100.0050.00816.68
7.2.90.0090.00916.88
7.2.80.0030.01116.70
7.2.70.0080.00816.88
7.2.60.0040.00916.85
7.2.50.0070.00716.77
7.2.40.0050.00916.84
7.2.30.0110.00816.73
7.2.20.0020.01116.67
7.2.10.0100.01016.80
7.2.00.0060.01117.60
7.1.330.0040.01015.87
7.1.320.0080.00515.67
7.1.310.0030.00515.89
7.1.300.0020.01315.68
7.1.290.0020.01115.67
7.1.280.0050.00815.65
7.1.270.0030.01015.69
7.1.260.0040.00615.61
7.1.250.0050.00615.69
7.1.240.0000.01415.86
7.1.230.0000.01415.99
7.1.220.0040.00715.92
7.1.210.0090.00315.57
7.1.200.0050.00715.73
7.1.190.0100.00615.87
7.1.180.0070.01015.87
7.1.170.0060.01215.90
7.1.160.0090.00015.86
7.1.150.0120.00315.77
7.1.140.0070.00715.86
7.1.130.0090.00615.82
7.1.120.0030.00915.94
7.1.110.0000.01115.63
7.1.100.0050.00716.88
7.1.90.0000.01115.94
7.1.80.0060.00615.77
7.1.70.0040.00416.53
7.1.60.0120.00517.55
7.1.50.0090.01016.46
7.1.40.0060.00315.73
7.1.30.0070.00415.84
7.1.20.0030.01215.64
7.1.10.0110.00415.62
7.1.00.0030.03519.17
7.0.330.0090.00315.57
7.0.320.0040.01115.58
7.0.310.0110.00615.09
7.0.300.0090.00915.63
7.0.290.0070.00715.21
7.0.280.0070.00715.17
7.0.270.0090.00615.33
7.0.260.0060.00315.39
7.0.250.0030.01415.29
7.0.240.0060.01015.65
7.0.230.0100.00615.55
7.0.220.0000.01015.25
7.0.210.0060.00615.43
7.0.200.0040.00816.08
7.0.190.0110.00415.43
7.0.180.0030.00515.41
7.0.170.0000.00915.45
7.0.160.0000.01715.40
7.0.150.0100.00615.43
7.0.140.0050.03918.58
7.0.130.0070.00715.46
7.0.120.0070.00715.52
7.0.110.0130.00015.21
7.0.100.0150.02517.64
7.0.90.0150.02217.65
7.0.80.0200.03017.71
7.0.70.0170.04517.65
7.0.60.0090.04117.82
7.0.50.0130.02217.82
7.0.40.0080.03516.75
7.0.30.0110.04016.88
7.0.20.0070.04316.65
7.0.10.0070.04316.91
7.0.00.0070.04716.88
5.6.400.0030.00913.94
5.6.390.0060.00914.50
5.6.380.0000.00813.84
5.6.370.0090.00614.25
5.6.360.0030.01413.92
5.6.350.0070.00714.38
5.6.340.0000.00914.42
5.6.330.0070.01114.45
5.6.320.0090.00614.16
5.6.310.0100.00713.79
5.6.300.0060.00914.48
5.6.290.0030.00614.24
5.6.280.0040.04017.63
5.6.270.0060.00614.05
5.6.260.0110.00014.42
5.6.250.0070.04017.52
5.6.240.0030.03317.38
5.6.230.0030.04617.45
5.6.220.0110.04517.35
5.6.210.0030.03817.44
5.6.200.0070.02817.62
5.6.190.0060.03317.65
5.6.180.0050.03517.64
5.6.170.0050.02817.67
5.6.160.0070.02917.61
5.6.150.0030.03817.55
5.6.140.0050.04017.69
5.6.130.0030.04917.50
5.6.120.0100.04317.66
5.6.110.0060.05217.82
5.6.100.0140.04217.60
5.6.90.0070.03017.51
5.6.80.0100.03517.36
5.6.70.0090.04117.19
5.6.60.0100.04117.33
5.6.50.0030.04617.22
5.6.40.0060.03617.19
5.6.30.0050.04617.45
5.6.20.0030.04717.44
5.6.10.0050.04017.38
5.6.00.0050.03517.31
5.5.380.0090.02417.22
5.5.370.0050.03217.34
5.5.360.0080.03517.24
5.5.350.0050.02817.43
5.5.340.0050.04717.47
5.5.330.0050.04117.49
5.5.320.0100.04317.49
5.5.310.0050.02817.42
5.5.300.0080.04317.62
5.5.290.0080.04017.59
5.5.280.0090.04417.46
5.5.270.0030.03217.35
5.5.260.0110.03317.48
5.5.250.0100.04017.43
5.5.240.0080.04017.10
5.5.230.0030.05017.20
5.5.220.0050.04317.09
5.5.210.0100.03517.28
5.5.200.0080.03917.23
5.5.190.0110.03517.20
5.5.180.0030.04217.10
5.5.170.0000.01014.16
5.5.160.0070.03217.35
5.5.150.0110.03317.13
5.5.140.0080.05317.15
5.5.130.0070.04317.25
5.5.120.0030.02717.01
5.5.110.0090.04417.25
5.5.100.0110.02317.18
5.5.90.0070.04217.07
5.5.80.0050.04217.03
5.5.70.0100.03717.14
5.5.60.0100.03717.04
5.5.50.0070.01817.07
5.5.40.0070.03217.08
5.5.30.0040.02216.95
5.5.20.0000.04917.15
5.5.10.0030.02717.00
5.5.00.0050.03317.04
5.4.450.0050.04415.29
5.4.440.0070.04615.39
5.4.430.0030.03415.21
5.4.420.0060.04115.33
5.4.410.0030.04115.05
5.4.400.0090.03515.12
5.4.390.0050.04314.91
5.4.380.0110.03015.11
5.4.370.0030.04315.08
5.4.360.0040.03815.05
5.4.350.0070.01814.92
5.4.340.0060.04115.05
5.4.330.0000.01011.38
5.4.320.0050.02514.88
5.4.310.0120.03214.86
5.4.300.0070.03014.94
5.4.290.0030.02514.92
5.4.280.0030.02514.98
5.4.270.0050.02515.06
5.4.260.0050.02815.10
5.4.250.0050.02415.17
5.4.240.0070.02215.06
5.4.230.0060.04014.94
5.4.220.0090.01915.16
5.4.210.0030.04014.80
5.4.200.0080.02715.13
5.4.190.0050.03914.80
5.4.180.0050.01914.93
5.4.170.0100.03615.21
5.4.160.0050.02015.13
5.4.150.0020.02515.04
5.4.140.0070.03013.72
5.4.130.0070.01513.75
5.4.120.0090.03513.71
5.4.110.0050.01713.64
5.4.100.0050.02413.64
5.4.90.0050.03413.61
5.4.80.0100.02113.67
5.4.70.0050.03713.57
5.4.60.0030.03213.76
5.4.50.0030.04013.58
5.4.40.0050.02013.84
5.4.30.0020.04213.74
5.4.20.0100.02813.71
5.4.10.0050.02513.80
5.4.00.0070.03513.33
5.3.290.0050.04512.72
5.3.280.0100.03012.61
5.3.270.0050.02112.67
5.3.260.0030.03312.61
5.3.250.0030.04112.60
5.3.240.0050.04612.63
5.3.230.0020.02012.63
5.3.220.0030.02712.59
5.3.210.0030.02212.61
5.3.200.0050.03512.61
5.3.190.0050.02412.65
5.3.180.0080.04012.65
5.3.170.0040.02112.62
5.3.160.0050.03212.58
5.3.150.0090.01512.56
5.3.140.0030.03912.58
5.3.130.0050.04012.58
5.3.120.0070.02512.66
5.3.110.0050.03612.60
5.3.100.0000.04112.39
5.3.90.0050.02512.42
5.3.80.0050.01912.34
5.3.70.0080.03012.27
5.3.60.0000.04412.36
5.3.50.0020.02312.26
5.3.40.0040.02712.31
5.3.30.0020.02712.33
5.3.20.0020.02012.18
5.3.10.0020.02312.18
5.3.00.0070.04012.14
5.2.170.0070.05711.20
5.2.160.0070.05711.17
5.2.150.0170.04711.16
5.2.140.0000.03011.19
5.2.130.0000.03011.15
5.2.120.0000.03011.09
5.2.110.0070.02711.12
5.2.100.0000.06311.02
5.2.90.0030.06011.02
5.2.80.0100.02011.22
5.2.70.0070.06710.99
5.2.60.0030.05711.14
5.2.50.0170.07011.04
5.2.40.0030.04310.91
5.2.30.0030.05710.98
5.2.20.0030.03710.88
5.2.10.0030.05710.89
5.2.00.0000.03710.73
5.1.60.0030.05010.08
5.1.50.0070.04310.00
5.1.40.0030.02310.01
5.1.30.0070.02710.40
5.1.20.0000.05710.22
5.1.10.0000.02710.12
5.1.00.0030.04010.17
5.0.50.0000.0438.54
5.0.40.0030.0338.50
5.0.30.0000.0478.21
5.0.20.0000.0238.32
5.0.10.0000.0208.11
5.0.00.0030.0608.29
4.4.90.0030.0238.11
4.4.80.0000.0238.11
4.4.70.0030.0278.11
4.4.60.0070.0308.11
4.4.50.0030.0308.11
4.4.40.0030.0438.11
4.4.30.0000.0408.11
4.4.20.0000.0178.11
4.4.10.0000.0308.11
4.4.00.0000.0508.11
4.3.110.0000.0278.11
4.3.100.0030.0138.11
4.3.90.0000.0338.11
4.3.80.0000.0478.11
4.3.70.0030.0208.11
4.3.60.0000.0138.11
4.3.50.0030.0138.11
4.3.40.0000.0408.11
4.3.30.0000.0238.11
4.3.20.0030.0138.11
4.3.10.0030.0278.11
4.3.00.0000.0178.11

preferences:
55.23 ms | 401 KiB | 5 Q