3v4l.org

run code in 300+ PHP versions simultaneously
<?php class LazyException extends Exception { public function __construct() { parent::__construct(); $this->message = new class() { public function __toString() { return 'World'; } }; } } $e = new LazyException(); try { throw $e; } catch (\Exception $e) { echo 'Hello '; echo $e->getMessage(); echo "\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.0.30.0070.01017.02
8.0.20.0050.01517.01
8.0.00.0120.00616.49
7.4.130.0090.00916.54
7.4.120.0070.01116.56
7.4.110.0120.00616.05
7.4.100.0170.00416.59
7.4.90.0070.01016.34
7.4.80.0060.01216.43
7.4.70.0040.01416.46
7.4.60.0100.01016.33
7.4.50.0150.00616.48
7.4.40.0100.01416.63
7.4.30.0060.01216.50
7.4.20.0040.01516.59
7.4.10.0150.00916.46
7.4.00.0130.01316.61
7.3.260.0070.01316.51
7.3.250.0130.00316.58
7.3.240.0130.00316.41
7.3.230.0110.00716.54
7.3.220.0070.01016.61
7.3.210.0100.01016.60
7.3.200.0100.00716.25
7.3.190.0090.00916.49
7.3.180.0070.01416.55
7.3.170.0070.01516.39
7.3.160.0100.01316.58
7.3.150.0140.00316.25
7.3.140.0090.01216.46
7.3.130.0120.00616.54
7.3.120.0120.00816.36
7.3.110.0150.00316.41
7.3.100.0100.00716.38
7.3.90.0090.00916.37
7.3.80.0210.00316.54
7.3.70.0090.00916.36
7.3.60.0150.00916.38
7.3.50.0150.00916.39
7.3.40.0040.01416.25
7.3.30.0150.00516.48
7.3.20.0060.01216.36
7.3.10.0190.00016.27
7.3.00.0170.01016.41
7.2.340.0090.01616.74
7.2.330.0140.00616.43
7.2.320.0180.00616.31
7.2.310.0130.01716.71
7.2.300.0270.00716.59
7.2.290.0130.01616.28
7.2.280.0150.00516.10
7.2.270.0210.00416.32
7.2.260.0100.01216.47
7.2.250.0100.01016.52
7.2.240.0110.01316.48
7.2.230.0100.01616.34
7.2.220.0080.01216.40
7.2.210.0180.00716.59
7.2.200.0110.01516.24
7.2.190.0080.01816.46
7.2.180.0130.01616.49
7.2.170.0140.01416.43
7.2.160.0040.01816.38
7.2.150.0190.00916.50
7.2.140.0160.00816.38
7.2.130.0150.01216.55
7.2.120.0090.01816.62
7.2.110.0230.00716.38
7.2.100.0240.00816.55
7.2.90.0200.01516.59
7.2.80.0200.00616.57
7.2.70.0080.01716.39
7.2.60.0450.00316.31
7.2.50.0200.01016.64
7.2.40.0280.00316.70
7.2.30.0270.00616.70
7.2.20.0240.00716.54
7.2.10.0300.00516.56
7.2.00.0240.00816.58
7.1.330.0070.01415.50
7.1.320.0190.00815.44
7.1.310.0180.00715.53
7.1.300.0200.00715.56
7.1.290.0160.00515.46
7.1.280.0170.01215.63
7.1.270.0270.00015.59
7.1.260.0170.00715.57
7.1.250.0190.00715.25
7.1.240.0150.01515.32
7.1.230.0180.01215.17
7.1.220.0220.00815.37
7.1.210.0190.01315.25
7.1.200.0150.01215.28
7.1.190.0160.00715.40
7.1.180.0230.00715.25
7.1.170.0230.00815.51
7.1.160.0240.01215.42
7.1.150.0280.00515.62
7.1.140.0290.00915.41
7.1.130.0270.01215.43
7.1.120.0470.00515.52
7.1.110.0300.01015.64
7.1.100.0270.00715.71
7.1.90.0250.01115.76
7.1.80.0220.00915.58
7.1.70.0180.01215.39
7.1.60.0300.00715.45
7.1.50.0210.01315.70
7.1.40.0160.01315.43
7.1.30.1410.00915.64
7.1.20.0280.01715.34
7.1.10.0230.00515.38
7.1.00.0250.00315.64
7.0.330.0140.01915.21
7.0.320.0190.00815.09
7.0.310.0110.01215.18
7.0.300.0230.00915.35
7.0.290.0350.00015.37
7.0.280.0320.00615.22
7.0.270.0310.00315.11
7.0.260.0280.00415.18
7.0.250.0210.01115.28
7.0.240.0330.00415.27
7.0.230.0140.01415.18
7.0.220.0260.00715.27
7.0.210.0180.00915.21
7.0.200.0170.01315.20
7.0.190.0080.02015.28
7.0.180.0180.00915.32
7.0.170.0290.00415.21
7.0.160.0200.00615.21
7.0.150.0240.02015.25
7.0.140.0190.00815.48
7.0.130.0180.00915.15
7.0.120.0190.01515.20
7.0.110.0390.01015.33
7.0.100.0290.01215.24
7.0.90.0090.00615.12
7.0.80.0090.00915.14
7.0.70.0160.00415.05
7.0.60.0080.00815.16
7.0.50.0120.01215.06
7.0.40.0030.01715.21
7.0.30.0130.00915.29
7.0.20.0080.01215.33
7.0.10.0170.00315.23
7.0.00.0110.00715.16
5.6.400.0160.01115.85
5.6.390.0150.01815.87
5.6.380.0150.01315.73
5.6.370.0060.01615.53
5.6.360.0250.00715.80
5.6.350.0160.02115.47
5.6.340.0180.01315.45
5.6.330.0220.00915.46
5.6.320.0250.00615.45
5.6.310.0250.00615.92
5.6.300.0080.02015.89
5.6.290.0110.01615.62
5.6.280.0230.01015.44
5.6.270.0060.02115.57
5.6.260.0290.00415.71
5.6.250.0200.00915.73
5.6.240.0060.01215.56
5.6.230.0090.00915.40
5.6.220.0140.00715.80
5.6.210.0290.02015.93
5.6.200.0090.01015.50
5.6.190.0180.00315.68
5.6.180.0150.01515.73
5.6.170.0100.01015.84
5.6.160.0170.00715.38
5.6.150.0180.01215.55
5.6.140.0160.01015.78
5.6.130.0150.00715.57
5.6.120.0130.01315.72
5.6.110.0060.01515.39
5.6.100.0140.00915.67
5.6.90.0160.00515.67
5.6.80.0100.01015.46
5.6.70.0120.00915.47
5.6.60.0120.00915.53
5.6.50.0120.01215.58
5.6.40.0130.00915.66
5.6.30.0110.01615.53
5.6.20.0180.00315.54
5.6.10.0090.01215.45
5.6.00.0070.01415.66
5.5.380.0170.01015.83
5.5.370.0150.01615.62
5.5.360.0200.00815.58
5.5.350.0290.00915.71
5.5.340.0190.01315.58
5.5.330.0220.00915.65
5.5.320.0230.01015.67
5.5.310.0310.00315.54
5.5.300.0190.01015.54
5.5.290.0110.02215.71
5.5.280.0180.01215.61
5.5.270.0240.00915.68
5.5.260.0220.00715.43
5.5.250.0190.01015.55
5.5.240.0210.00915.42
5.5.230.0140.01415.55
5.5.220.0240.01415.55
5.5.210.0190.01215.58
5.5.200.0240.00615.43
5.5.190.0290.01015.65
5.5.180.0110.01815.50
5.5.170.0190.01015.55
5.5.160.0260.00315.61
5.5.150.0190.01015.39
5.5.140.0250.00715.58
5.5.130.0170.01215.40
5.5.120.0190.00915.61
5.5.110.0190.01915.45
5.5.100.0200.00915.70
5.5.90.0130.01415.64
5.5.80.0130.02015.65
5.5.70.0180.01815.46
5.5.60.0170.01715.45
5.5.50.0130.01715.65
5.5.40.0240.00815.53
5.5.30.0170.01015.63
5.5.20.0170.03115.53
5.5.10.0220.01515.46
5.5.00.0170.01015.56
5.4.450.0310.01212.54
5.4.440.0050.02012.56
5.4.430.0170.00712.38
5.4.420.0170.00512.50
5.4.410.0220.00012.49
5.4.400.0230.00712.23
5.4.390.0090.01312.42
5.4.380.0160.00812.29
5.4.370.0200.00312.25
5.4.360.0170.00912.51
5.4.350.0190.00412.24
5.4.340.0110.01112.50
5.4.330.0090.01512.56
5.4.320.0160.00612.41
5.4.310.0120.00912.23
5.4.300.0110.01212.43
5.4.290.0110.01112.46
5.4.280.0170.00612.18
5.4.270.0160.00512.27
5.4.260.0160.00612.25
5.4.250.0180.00512.50
5.4.240.0150.00712.50
5.4.230.0210.00612.30
5.4.220.0150.01512.29
5.4.210.0140.00912.57
5.4.200.0190.01112.14
5.4.190.0180.00512.38
5.4.180.0210.00012.39
5.4.170.0210.00312.36
5.4.160.0150.00512.34
5.4.150.0180.00412.55
5.4.140.0140.00912.38
5.4.130.0210.00612.26
5.4.120.0170.00712.39
5.4.110.0110.01212.52
5.4.100.0180.00512.34
5.4.90.0140.01012.69
5.4.80.0150.00712.38
5.4.70.0150.00912.49
5.4.60.0160.00512.36
5.4.50.0150.00512.52
5.4.40.0170.00412.31
5.4.30.0150.00812.42
5.4.20.0160.00512.45
5.4.10.0180.00612.29
5.4.00.0180.00812.51
5.3.290.0200.00612.91
5.3.280.0210.00312.94
5.3.270.0190.00512.71
5.3.260.0210.00312.74
5.3.250.0170.00612.89
5.3.240.0160.01212.59
5.3.230.0190.00812.79
5.3.220.0140.01012.83
5.3.210.0120.01212.70
5.3.200.0140.00812.70
5.3.190.0140.01012.76
5.3.180.0150.00712.95
5.3.170.0150.00812.88
5.3.160.0130.00912.98
5.3.150.0160.00612.84
5.3.140.0160.00612.78
5.3.130.0190.00412.77
5.3.120.0210.00312.77
5.3.110.0150.00912.78
5.3.100.0170.00612.92
5.3.90.0150.00912.83
5.3.80.0190.00312.86
5.3.70.0130.01012.67
5.3.60.0190.00312.76
5.3.50.0170.00712.69
5.3.40.0240.00012.70
5.3.30.0220.00312.86
5.3.20.0110.01212.68
5.3.10.0160.00812.64
5.3.00.0110.01112.54
5.2.170.0170.00311.79
5.2.160.0130.01011.78
5.2.150.0120.00611.90
5.2.140.0150.00511.86
5.2.130.0160.00311.89
5.2.120.0110.00711.86
5.2.110.0160.00711.73
5.2.100.0160.00311.75
5.2.90.0100.01011.75
5.2.80.0140.00611.83
5.2.70.0190.00411.67
5.2.60.0130.00711.73
5.2.50.0080.01111.71
5.2.40.0070.01111.69
5.2.30.0120.00811.91
5.2.20.0160.00311.54
5.2.10.0240.01411.45
5.2.00.0120.00811.53
5.1.60.0140.00310.79
5.1.50.0150.00810.73
5.1.40.0090.01210.87
5.1.30.0040.01211.11
5.1.20.0140.00311.12
5.1.10.0100.00710.79
5.1.00.0130.00310.73
5.0.50.0130.00310.73
5.0.40.0140.00010.73
5.0.30.0140.00010.73
5.0.20.0110.00310.73
5.0.10.0140.00410.73
5.0.00.0090.00610.73
4.4.90.0130.00010.73
4.4.80.0090.00010.73
4.4.70.0060.00310.73
4.4.60.0050.00610.73
4.4.50.0100.00010.73
4.4.40.0050.00510.73
4.4.30.0090.00010.73
4.4.20.0100.00010.73
4.4.10.0050.00510.73
4.4.00.0090.00010.73
4.3.110.0050.00310.73
4.3.100.0080.00010.73
4.3.90.0080.00310.73
4.3.80.0060.00310.73
4.3.70.0100.00010.73
4.3.60.0070.00310.73
4.3.50.0070.00310.73
4.3.40.0100.00310.73
4.3.30.0050.00510.73
4.3.20.0070.00410.73
4.3.10.0040.00410.73
4.3.00.0080.00010.73