3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A extends Exception { public function __construct($code) { parent::__construct("", 0, null); $this->code = $code; } } throw new A;

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.00316.63
8.3.50.0110.00416.16
8.3.40.0120.00318.75
8.3.30.0060.00918.79
8.3.20.0040.00420.20
8.3.10.0050.00323.66
8.3.00.0040.00423.60
8.2.180.0110.01118.41
8.2.170.0120.00418.96
8.2.160.0040.01122.96
8.2.150.0040.00425.66
8.2.140.0030.00724.66
8.2.130.0080.00019.64
8.2.120.0000.00826.35
8.2.110.0030.00619.28
8.2.100.0060.00617.84
8.2.90.0090.00019.12
8.2.80.0080.00017.97
8.2.70.0040.00417.50
8.2.60.0030.00517.65
8.2.50.0040.00418.07
8.2.40.0080.00022.32
8.2.30.0030.00320.70
8.2.20.0040.00417.70
8.2.10.0060.00318.00
8.2.00.0040.00417.87
8.1.280.0070.00725.92
8.1.270.0030.00622.20
8.1.260.0040.00428.09
8.1.250.0080.00028.09
8.1.240.0060.00321.28
8.1.230.0040.00717.42
8.1.220.0040.00417.78
8.1.210.0050.00318.77
8.1.200.0000.00917.10
8.1.190.0050.00217.23
8.1.180.0070.00018.10
8.1.170.0040.00418.43
8.1.160.0050.00220.64
8.1.150.0030.00518.72
8.1.140.0000.00819.45
8.1.130.0000.00717.63
8.1.120.0050.00217.27
8.1.110.0060.00317.33
8.1.100.0000.00817.31
8.1.90.0040.00417.34
8.1.80.0030.00617.38
8.1.70.0000.00717.30
8.1.60.0030.00717.53
8.1.50.0000.00817.51
8.1.40.0030.00617.51
8.1.30.0000.00817.44
8.1.20.0000.00817.60
8.1.10.0040.00417.51
8.1.00.0030.00517.30
8.0.300.0050.00218.77
8.0.290.0060.00316.75
8.0.280.0080.00018.38
8.0.270.0070.00017.10
8.0.260.0070.00017.20
8.0.250.0050.00216.92
8.0.240.0030.00617.00
8.0.230.0040.00416.93
8.0.220.0000.00716.93
8.0.210.0040.00416.93
8.0.200.0040.00416.91
8.0.190.0030.00516.95
8.0.180.0040.00416.98
8.0.170.0040.00416.91
8.0.160.0030.00416.89
8.0.150.0000.00816.84
8.0.140.0060.00316.75
8.0.130.0000.00613.29
8.0.120.0000.00716.70
8.0.110.0030.00516.73
8.0.100.0000.00816.86
8.0.90.0000.00716.89
8.0.80.0100.00716.82
8.0.70.0080.00016.88
8.0.60.0040.00416.78
8.0.50.0000.00716.70
8.0.30.0130.00717.05
8.0.20.0110.00717.40
8.0.10.0000.00816.91
8.0.00.0100.01116.76
7.4.330.0050.00016.66
7.4.320.0060.00016.24
7.4.300.0030.00316.40
7.4.290.0030.00316.53
7.4.280.0040.00716.42
7.4.270.0000.00716.46
7.4.260.0000.00716.44
7.4.250.0030.00316.57
7.4.240.0060.00216.42
7.4.230.0030.00316.28
7.4.220.0100.01016.54
7.4.210.0070.00816.45
7.4.200.0000.00716.49
7.4.160.0000.01516.48
7.4.150.0180.00017.40
7.4.140.0090.00917.86
7.4.130.0130.00516.54
7.4.120.0100.00716.56
7.4.110.0070.01116.43
7.4.100.0060.01316.38
7.4.90.0110.00616.46
7.4.80.0130.00619.39
7.4.70.0130.00616.49
7.4.60.0090.00816.43
7.4.50.0050.00516.31
7.4.40.0050.01116.60
7.4.30.0030.01416.51
7.4.00.0080.00814.91
7.3.330.0050.00313.20
7.3.320.0030.00413.38
7.3.310.0030.00316.33
7.3.300.0030.00316.38
7.3.290.0000.00716.39
7.3.280.0070.00916.33
7.3.270.0080.00817.40
7.3.260.0040.01216.22
7.3.250.0100.00816.25
7.3.240.0060.01416.38
7.3.230.0040.01416.50
7.3.210.0080.01016.24
7.3.200.0060.01019.39
7.3.190.0130.00316.29
7.3.180.0130.00316.39
7.3.170.0130.00616.52
7.3.160.0030.01316.57
7.3.120.0080.00815.01
7.3.110.0080.00914.88
7.3.100.0080.00814.93
7.3.90.0070.00914.87
7.3.80.0030.00814.95
7.3.70.0070.00714.73
7.3.60.0080.00814.80
7.3.50.0100.00314.87
7.3.40.0060.00914.72
7.3.30.0050.00714.72
7.3.20.0090.00416.71
7.3.10.0060.00716.60
7.3.00.0050.01016.51
7.2.330.0090.00916.51
7.2.320.0040.01216.57
7.2.310.0140.00316.26
7.2.300.0080.00816.32
7.2.290.0060.01016.57
7.2.250.0100.00814.92
7.2.240.0090.01015.03
7.2.230.0020.01614.98
7.2.220.0010.01014.95
7.2.210.0080.00814.76
7.2.200.0070.00814.95
7.2.190.0080.00314.78
7.2.180.0030.01114.90
7.2.170.0080.00814.86
7.2.60.0250.00716.23
7.2.00.0030.00919.20
7.1.330.0070.00515.65
7.1.320.0070.00715.47
7.1.310.0080.00515.73
7.1.300.0060.00715.50
7.1.290.0070.00915.55
7.1.280.0000.00915.51
7.1.270.0050.00515.57
7.1.260.0080.00815.60
7.1.200.0060.00615.49
7.1.100.0060.00617.84
7.1.70.0040.00417.00
7.1.60.0130.00619.20
7.1.50.0140.01016.66
7.1.00.0070.06722.44
7.0.200.0030.00716.75
7.0.60.0030.07021.73
7.0.50.0070.04017.88
7.0.40.0070.07320.09
7.0.30.0300.08020.07
7.0.20.0300.06720.22
7.0.10.0030.04320.08
7.0.00.0070.08020.18
5.6.280.0070.03021.11
5.6.210.0070.04020.77
5.6.200.0100.04018.18
5.6.190.0130.03320.48
5.6.180.0470.05720.52
5.6.170.0330.07020.54
5.6.160.0070.04320.54
5.6.150.0100.04018.18
5.6.140.0130.04718.17
5.6.130.0100.06718.23
5.6.120.0070.07021.12
5.6.110.0070.07721.04
5.6.100.0100.08320.98
5.6.90.0130.07321.00
5.6.80.0100.08020.39
5.5.350.0230.05320.43
5.5.340.0170.04317.98
5.5.330.0070.05720.19
5.5.320.0470.04020.21
5.5.310.0430.07020.23
5.5.300.0030.05018.02
5.5.290.0100.08317.98
5.5.280.0070.05720.88
5.5.270.0070.04020.79
5.5.260.0100.03720.79
5.5.250.0070.07020.58
5.5.240.0100.05020.24

preferences:
50.38 ms | 400 KiB | 5 Q