3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Test { public function action(){ throw new Exception('destroyer ?'); } public function __destruct(){ echo "i'm dying"; } } $o = new Test(); try { $o->action(); } catch(Exception $ex){ echo $ex->getMessage(); } $o->action();

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.0150.00316.50
8.3.50.0100.00822.11
8.3.40.0070.00718.84
8.3.30.0000.01518.85
8.3.20.0040.00420.18
8.3.10.0040.00423.71
8.3.00.0000.00819.25
8.2.180.0110.00818.41
8.2.170.0100.00322.96
8.2.160.0100.01022.15
8.2.150.0040.00424.18
8.2.140.0030.00624.66
8.2.130.0030.00617.63
8.2.120.0070.00026.35
8.2.110.0090.00022.07
8.2.100.0060.00617.93
8.2.90.0080.00019.21
8.2.80.0080.00017.97
8.2.70.0050.00317.63
8.2.60.0030.00617.93
8.2.50.0000.00918.07
8.2.40.0000.00819.37
8.2.30.0000.00820.66
8.2.20.0030.00917.64
8.2.10.0000.00817.93
8.2.00.0040.00418.09
8.1.280.0120.00325.92
8.1.270.0070.00323.72
8.1.260.0050.00328.09
8.1.250.0000.00728.09
8.1.240.0090.00022.45
8.1.230.0080.00417.76
8.1.220.0000.00817.76
8.1.210.0000.00818.77
8.1.200.0060.00317.34
8.1.190.0040.00417.36
8.1.180.0070.00018.10
8.1.170.0040.00418.59
8.1.160.0000.00721.91
8.1.150.0050.00318.79
8.1.140.0040.00419.50
8.1.130.0000.00717.69
8.1.120.0070.00017.49
8.1.110.0060.00617.41
8.1.100.0040.00417.41
8.1.90.0070.00017.44
8.1.80.0080.00017.49
8.1.70.0040.00417.35
8.1.60.0030.00617.56
8.1.50.0000.00817.46
8.1.40.0040.00417.50
8.1.30.0050.00317.63
8.1.20.0000.00817.63
8.1.10.0070.00017.56
8.1.00.0030.00617.47
8.0.300.0000.00718.77
8.0.290.0040.00416.88
8.0.280.0040.00418.43
8.0.270.0030.00317.11
8.0.260.0070.00017.16
8.0.250.0000.00716.89
8.0.240.0040.00416.86
8.0.230.0000.00716.82
8.0.220.0030.00316.88
8.0.210.0000.00716.87
8.0.200.0100.00016.94
8.0.190.0000.00716.88
8.0.180.0000.00816.89
8.0.170.0030.00616.95
8.0.160.0000.00816.82
8.0.150.0040.00316.85
8.0.140.0040.00416.89
8.0.130.0000.00713.38
8.0.120.0040.00416.89
8.0.110.0000.00716.79
8.0.100.0040.00416.89
8.0.90.0030.00416.94
8.0.80.0040.01116.93
8.0.70.0000.00816.86
8.0.60.0000.00716.88
8.0.50.0050.00216.98
8.0.30.0110.00917.25
8.0.20.0080.01017.40
8.0.10.0050.00216.94
8.0.00.0090.00816.79
7.4.330.0000.00516.72
7.4.320.0020.00516.53
7.4.300.0040.00416.41
7.4.290.0080.00016.40
7.4.280.0050.00316.62
7.4.270.0000.00716.61
7.4.260.0000.00716.53
7.4.250.0000.00816.55
7.4.240.0030.00316.53
7.4.230.0000.00716.68
7.4.220.0060.01216.49
7.4.210.0100.01016.43
7.4.200.0000.00916.66
7.4.160.0000.01516.52
7.4.150.0030.01417.40
7.4.140.0100.01117.86
7.4.130.0110.00916.67
7.4.120.0060.01116.41
7.4.110.0180.00316.57
7.4.100.0170.00316.50
7.4.90.0080.00816.50
7.4.80.0120.00919.39
7.4.70.0140.00316.57
7.4.60.0130.00316.57
7.4.50.0030.01116.37
7.4.40.0070.01016.57
7.4.30.0070.01416.59
7.4.10.0090.00915.08
7.4.00.0090.00915.10
7.3.330.0000.00613.19
7.3.320.0000.00513.18
7.3.310.0050.00216.44
7.3.300.0030.00316.30
7.3.290.0070.00816.28
7.3.280.0080.01216.37
7.3.270.0000.01817.40
7.3.260.0190.00416.42
7.3.250.0060.01116.50
7.3.240.0130.00716.41
7.3.230.0060.01616.39
7.3.210.0110.00616.42
7.3.200.0030.01316.52
7.3.190.0100.00616.54
7.3.180.0180.00016.29
7.3.170.0130.00316.46
7.3.160.0100.00616.33
7.3.130.0060.00914.75
7.3.120.0060.01214.71
7.3.110.0110.00714.86
7.3.100.0030.01014.92
7.3.90.0030.01414.91
7.3.80.0040.00814.87
7.3.70.0060.00914.78
7.3.60.0040.01114.76
7.3.50.0000.01614.84
7.3.40.0050.00514.80
7.3.30.0100.00314.51
7.3.20.0000.01116.73
7.3.10.0090.00416.55
7.3.00.0060.00516.63
7.2.330.0090.01216.71
7.2.320.0090.00916.74
7.2.310.0100.00716.74
7.2.300.0070.01116.66
7.2.290.0120.00616.53
7.2.260.0100.01014.83
7.2.250.0110.00714.93
7.2.240.0100.00715.31
7.2.230.0070.01415.16
7.2.220.0120.00615.04
7.2.210.0040.00814.62
7.2.200.0070.00715.18
7.2.190.0060.00915.06
7.2.180.0090.00914.83
7.2.170.0090.00915.06
7.2.160.0090.00614.96
7.2.150.0090.00616.94
7.2.140.0090.00616.95
7.2.130.0060.00716.86
7.2.120.0050.00616.86
7.2.110.0060.00916.68
7.2.100.0100.00416.68
7.2.90.0110.00516.77
7.2.80.0110.00616.74
7.2.70.0140.01016.86
7.2.60.0160.01016.72
7.2.50.0160.01316.65
7.2.40.0150.00616.83
7.2.30.0170.00816.78
7.2.20.0240.01016.74
7.2.10.0200.00716.72
7.2.00.0100.00817.56
7.1.330.0110.00615.67
7.1.320.0050.00515.50
7.1.310.0030.01015.75
7.1.300.0060.01215.62
7.1.290.0070.01015.85
7.1.280.0070.01015.39
7.1.270.0070.00715.85
7.1.260.0070.00715.78
7.1.250.0090.00215.81
7.1.240.0070.00915.60
7.1.230.0090.00515.69
7.1.220.0090.00815.51
7.1.210.0100.00515.52
7.1.200.0100.00615.64
7.1.190.0070.00815.50
7.1.180.0090.00815.64
7.1.170.0150.00615.56
7.1.160.0220.00915.44
7.1.150.0210.00715.57
7.1.140.0100.01015.53
7.1.130.0130.00515.67
7.1.120.0070.00715.43
7.1.110.0060.00815.47
7.1.100.0040.00916.21
7.1.90.0060.00815.55
7.1.80.0050.00815.41
7.1.70.0090.00516.01
7.1.60.0070.01016.54
7.1.50.0060.01115.87
7.1.40.0080.00515.57
7.1.30.0100.00815.49
7.1.20.0070.01015.49
7.1.10.0070.00715.50
7.1.00.0070.02517.18
7.0.330.0050.00815.33
7.0.320.0030.01015.41
7.0.310.0070.00715.23
7.0.300.0150.01015.24
7.0.290.0160.00815.21
7.0.280.0170.00815.22
7.0.270.0110.00615.20
7.0.260.0100.00615.19
7.0.250.0070.00715.40
7.0.240.0090.00715.34
7.0.230.0050.00615.22
7.0.220.0100.00615.04
7.0.210.0060.00615.33
7.0.200.0120.01014.95
7.0.190.0090.00415.17
7.0.180.0070.00715.30
7.0.170.0100.00515.29
7.0.160.0150.00615.24
7.0.150.0070.00515.25
7.0.140.0090.00615.23
7.0.130.0040.01115.18
7.0.120.0070.00815.35
7.0.110.0080.00815.22
7.0.100.0090.00515.35
7.0.90.0050.00915.36
7.0.80.0060.00815.23
7.0.70.0120.01015.40
7.0.60.0280.02616.32
7.0.50.0160.02015.93
7.0.40.0100.02715.07
7.0.30.0180.02515.18
7.0.20.0100.02115.14
7.0.10.0170.01214.99
7.0.00.0070.01715.11
5.6.400.0070.01014.52
5.6.390.0060.00614.56
5.6.380.0070.00614.42
5.6.370.0080.00914.38
5.6.360.0180.00514.21
5.6.350.0180.00614.29
5.6.340.0190.00914.20
5.6.330.0170.00614.12
5.6.320.0080.00614.27
5.6.310.0010.01314.42
5.6.300.0050.01014.16
5.6.290.0060.00914.27
5.6.280.0050.02515.88
5.6.270.0060.00614.12
5.6.260.0080.00814.37
5.6.250.0080.00814.22
5.6.240.0060.00714.31
5.6.230.0050.00914.16
5.6.220.0090.00714.31
5.6.210.0210.01915.71
5.6.200.0150.02015.12
5.6.190.0140.01815.74
5.6.180.0180.02415.77
5.6.170.0150.01415.77
5.6.160.0190.01515.79
5.6.150.0150.02215.26
5.6.140.0170.02415.20
5.6.130.0060.02815.29
5.6.120.0140.02015.92
5.6.110.0250.01915.75
5.6.100.0150.01716.04
5.6.90.0170.01715.88
5.6.80.0240.02215.81
5.6.70.0110.00814.26
5.6.60.0080.00714.18
5.6.50.0090.00514.13
5.6.40.0100.00814.12
5.6.30.0090.00714.05
5.6.20.0060.00914.35
5.6.10.0080.00614.07
5.6.00.0060.00714.03
5.5.380.0050.00812.25
5.5.370.0040.00612.03
5.5.360.0180.00812.02
5.5.350.0850.01514.29
5.5.340.0210.02113.67
5.5.330.0120.01914.20
5.5.320.0150.02314.26
5.5.310.0130.01714.26
5.5.300.0070.02213.66
5.5.290.0120.01613.60
5.5.280.0120.02114.30
5.5.270.0180.01314.37
5.5.260.0250.02114.21
5.5.250.0070.01614.31
5.5.240.0190.01614.04
5.5.230.0040.00612.14
5.5.220.0060.00612.08
5.5.210.0120.00812.04
5.5.200.0070.00911.77
5.5.190.0040.00712.11
5.5.180.0060.00712.01
5.5.170.0060.00813.20
5.5.160.0060.00512.21
5.5.150.0040.00712.04
5.5.140.0050.00712.20
5.5.130.0050.00611.91
5.5.120.0080.00411.85
5.5.110.0070.00612.06
5.5.100.0070.00411.96
5.5.90.0030.01011.90
5.5.80.0090.00512.10
5.5.70.0050.00511.97
5.5.60.0060.00512.08
5.5.50.0020.00912.24
5.5.40.0050.00612.06
5.5.30.0020.00912.01
5.5.20.0070.00512.09
5.5.10.0050.00711.85
5.5.00.0060.00412.02

preferences:
42.83 ms | 401 KiB | 5 Q