3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public $bar; public function __destruct() { throw new Exception('You shit'); } } class Bar { private $foo; public function __construct(Foo $foo) { $this->foo = $foo; $foo->bar = $this; } public function __destruct() { echo "Foo\n"; } } (new Bar(new Foo));

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.0140.00718.43
8.3.50.0090.00922.02
8.3.40.0110.00418.79
8.3.30.0110.00419.21
8.3.20.0040.00420.00
8.3.10.0090.00023.61
8.3.00.0080.00020.84
8.2.180.0100.00716.50
8.2.170.0120.00322.96
8.2.160.0070.00720.27
8.2.150.0050.00324.18
8.2.140.0000.00824.66
8.2.130.0040.01426.16
8.2.120.0050.00320.91
8.2.110.0060.00322.14
8.2.100.0120.00018.03
8.2.90.0050.00319.17
8.2.80.0000.00817.97
8.2.70.0040.00417.75
8.2.60.0120.00017.80
8.2.50.0090.00418.07
8.2.40.0080.00019.82
8.2.30.0040.00718.18
8.2.20.0000.00717.67
8.2.10.0050.00218.03
8.2.00.0070.00017.75
8.1.280.0090.00625.92
8.1.270.0060.00323.88
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0030.00723.88
8.1.230.0090.00318.91
8.1.220.0040.00417.74
8.1.210.0060.00318.77
8.1.200.0060.00317.35
8.1.190.0080.00017.23
8.1.180.0040.00418.10
8.1.170.0060.00318.66
8.1.160.0040.00421.91
8.1.150.0000.00718.57
8.1.140.0040.00417.49
8.1.130.0030.00317.76
8.1.120.0030.00317.44
8.1.110.0000.00817.38
8.1.100.0030.00317.44
8.1.90.0040.00417.43
8.1.80.0040.00417.41
8.1.70.0030.00317.46
8.1.60.0060.00317.59
8.1.50.0000.00817.51
8.1.40.0040.00417.55
8.1.30.0040.00817.59
8.1.20.0030.00517.60
8.1.10.0040.00417.60
8.1.00.0030.00717.57
8.0.300.0040.00418.77
8.0.290.0070.00017.14
8.0.280.0030.00518.49
8.0.270.0040.00417.21
8.0.260.0060.00317.22
8.0.250.0030.00316.99
8.0.240.0040.00417.00
8.0.230.0030.00316.98
8.0.220.0070.00016.91
8.0.210.0030.00316.95
8.0.200.0050.00317.02
8.0.190.0030.00716.99
8.0.180.0080.00416.89
8.0.170.0000.00816.93
8.0.160.0000.00716.96
8.0.150.0000.00716.79
8.0.140.0000.00816.75
8.0.130.0030.00313.36
8.0.120.0000.00816.82
8.0.110.0030.00516.95
8.0.100.0040.00416.82
8.0.90.0000.00817.01
8.0.80.0060.00916.92
8.0.70.0040.00416.90
8.0.60.0040.00316.98
8.0.50.0000.00716.77
8.0.30.0090.00917.05
8.0.20.0120.01017.40
8.0.10.0050.00316.92
8.0.00.0100.01016.76
7.4.330.0030.00315.05
7.4.320.0040.00416.36
7.4.300.0000.00616.57
7.4.290.0080.00016.43
7.4.280.0040.00416.44
7.4.270.0000.00616.30
7.4.260.0030.00316.53
7.4.250.0060.00316.42
7.4.240.0030.00316.46
7.4.230.0070.00016.51
7.4.220.0070.01016.56
7.4.210.0070.00716.65
7.4.200.0030.00316.35
7.4.160.0120.00316.60
7.4.150.0120.00617.40
7.4.140.0080.01017.86
7.4.130.0070.01016.50
7.4.120.0120.00816.70
7.4.110.0060.01516.64
7.4.100.0120.00616.44
7.4.90.0100.00716.48
7.4.80.0090.01319.39
7.4.70.0110.00716.46
7.4.60.0070.01316.52
7.4.50.0000.00616.59
7.4.40.0060.01516.64
7.4.30.0090.01216.53
7.4.00.0000.01715.05
7.3.330.0050.00313.20
7.3.320.0000.00513.18
7.3.310.0060.00316.36
7.3.300.0050.00216.35
7.3.290.0060.00916.41
7.3.280.0090.01016.42
7.3.270.0060.01217.40
7.3.260.0110.00716.46
7.3.250.0070.01416.44
7.3.240.0080.00816.30
7.3.230.0160.00716.47
7.3.210.0090.00916.31
7.3.200.0120.00319.39
7.3.190.0100.00716.42
7.3.180.0060.01016.30
7.3.170.0030.01316.48
7.3.160.0060.01116.40
7.3.120.0120.00314.91
7.3.00.0000.01016.60
7.2.330.0090.00916.86
7.2.320.0070.01016.44
7.2.310.0090.00916.69
7.2.300.0140.00616.50
7.2.290.0060.01216.77
7.2.130.0040.00816.82
7.2.120.0070.00717.02
7.2.110.0110.00616.84
7.2.100.0040.00917.00
7.2.90.0050.00516.95
7.2.80.0070.00716.79
7.2.70.0030.00717.05
7.2.60.0050.00916.83
7.2.50.0060.00916.75
7.2.40.0030.00616.97
7.2.30.0060.00616.83
7.2.20.0070.01017.00
7.2.10.0090.00916.70
7.2.00.0070.00718.23
7.1.250.0000.01615.75
7.1.240.0130.00015.47
7.1.230.0070.00315.56
7.1.220.0040.00415.86
7.1.210.0040.00815.51
7.1.200.0110.00215.70
7.1.190.0040.00415.59
7.1.180.0030.01015.86
7.1.170.0030.01015.88
7.1.160.0030.01015.55
7.1.150.0070.00715.91
7.1.140.0000.01515.87
7.1.130.0040.00715.55
7.1.120.0050.00515.77
7.1.110.0070.01015.44
7.1.100.0030.00916.82
7.1.90.0100.00315.76
7.1.80.0070.00715.87
7.1.70.0030.00716.29
7.1.60.0050.01317.82
7.1.50.0130.01425.37
7.1.40.0100.00315.33
7.1.30.0030.00715.38
7.1.20.0000.01415.52
7.1.10.0060.00315.62
7.1.00.0060.03819.09
7.0.330.0060.00315.32
7.0.320.0060.00615.46
7.0.310.0090.00315.09
7.0.300.0030.01015.44
7.0.290.0070.00415.29
7.0.280.0030.00715.34
7.0.270.0040.00815.39
7.0.260.0060.00315.46
7.0.250.0030.01015.44
7.0.240.0030.00515.50
7.0.230.0000.01215.52
7.0.220.0100.00015.39
7.0.210.0070.00715.11
7.0.200.0180.00215.28
7.0.190.0030.00615.30
7.0.180.0040.00415.54
7.0.170.0040.00715.43
7.0.160.0000.01315.44
7.0.150.0030.00615.18
7.0.140.0020.03718.78
7.0.130.0030.00715.41
7.0.120.0070.00415.59
7.0.110.0080.00415.59
7.0.100.0070.00315.21
7.0.90.0030.01015.40
7.0.80.0070.00315.32
7.0.70.0060.01015.59
7.0.60.0050.04617.49
7.0.50.0010.02616.69
7.0.40.0060.04616.80
7.0.30.0140.02216.70
7.0.20.0230.04116.89
7.0.10.0070.03316.88
7.0.00.0080.03716.68
5.6.380.0070.00714.40
5.6.370.0000.00914.15
5.6.360.0030.01014.54
5.6.350.0030.01014.19
5.6.340.0040.01114.36
5.6.330.0030.00914.32
5.6.320.0040.00814.54
5.6.310.0030.01014.33
5.6.300.0070.00713.97
5.6.290.0060.00314.34
5.6.280.0000.04617.74
5.6.270.0060.00314.19
5.6.260.0000.01114.17
5.6.250.0100.00314.21
5.6.240.0030.00714.41
5.6.230.0070.00714.19
5.6.220.0000.01214.30
5.6.210.0080.02717.51
5.6.200.0020.03616.24
5.6.190.0100.03217.37
5.6.180.1930.02717.37
5.6.170.0180.04317.48
5.6.160.0060.02617.42
5.6.150.0020.02616.19
5.6.140.0050.04516.22
5.6.130.0020.03116.36
5.6.120.0050.02517.71
5.6.110.0070.03517.62
5.6.100.0100.04717.76
5.6.90.0080.04317.60
5.6.80.0080.04317.35
5.6.70.2370.01817.40
5.6.60.0080.00014.02
5.6.50.0070.01014.05
5.6.40.0060.00614.17
5.6.30.0030.01014.30
5.6.20.0170.00014.48
5.6.10.0070.00714.47
5.6.00.0000.01314.26
5.5.380.0100.00011.20
5.5.370.0060.00611.32
5.5.360.0040.00411.15
5.5.350.0050.04215.86
5.5.340.0050.04114.50
5.5.330.0080.03615.72
5.5.320.0150.02815.86
5.5.310.0160.02515.70
5.5.300.0020.03514.57
5.5.290.0020.02714.58
5.5.280.0030.02215.93
5.5.270.0080.02215.86
5.5.260.0030.04816.11
5.5.250.0060.04015.81
5.5.240.0120.03815.51
5.5.230.0050.00210.70
5.5.220.0030.00311.07
5.5.210.0000.00611.24
5.5.200.0000.00610.83
5.5.190.0000.01011.26
5.5.180.0030.00610.97
5.5.170.0050.00511.07
5.5.160.0080.00011.22
5.5.150.0040.00411.26
5.5.140.0000.01210.94
5.5.130.0060.00611.33
5.5.120.0040.00810.77
5.5.110.0030.00610.68
5.5.100.0070.00011.23
5.5.90.0030.00511.02
5.5.80.0060.00310.80
5.5.70.0060.00311.10
5.5.60.0070.00011.16
5.5.50.0040.00811.21
5.5.40.0030.00610.89
5.5.30.0030.00610.93
5.5.20.0000.01210.95
5.5.10.0000.00710.88
5.5.00.0040.00811.19
5.4.450.0400.03115.25
5.4.440.0380.02815.26
5.4.430.0460.03515.18
5.4.420.0380.03315.38
5.4.410.0400.02815.21
5.4.400.0160.02514.76
5.4.390.0160.02714.73
5.4.380.0170.03014.90
5.4.370.0080.02514.83
5.4.360.0080.02414.66
5.4.350.0040.02811.61
5.4.340.0080.01811.50
5.4.330.0030.00710.96
5.4.320.0100.01711.66
5.4.310.0020.02611.72
5.4.300.0080.02511.58
5.4.290.0070.02411.80
5.4.280.0060.02011.63
5.4.270.0050.02511.64
5.4.260.0060.02111.75
5.4.250.0040.02311.62
5.4.240.0050.02411.57
5.4.230.0050.02911.56
5.4.220.0040.02811.64
5.4.210.0080.02111.63
5.4.200.0100.02011.79
5.4.190.0050.01911.57
5.4.180.0030.02111.73
5.4.170.0060.02111.69
5.4.160.0060.02211.73
5.4.150.0090.01911.61
5.4.140.0070.01911.58
5.4.130.0080.01611.63
5.4.120.0040.02111.42
5.4.110.0040.02011.50
5.4.100.0060.01811.47
5.4.90.0050.02511.49
5.4.80.0040.01911.53
5.4.70.0030.02211.60
5.4.60.0020.02311.41
5.4.50.0050.02111.46
5.4.40.0030.02111.48
5.4.30.0060.02011.53
5.4.20.0040.02111.49
5.4.10.0050.02011.39
5.4.00.0040.02211.29
5.3.290.0040.02311.73
5.3.280.0030.02411.56
5.3.270.0040.02311.69
5.3.260.0040.02311.65
5.3.250.0040.02411.68
5.3.240.0040.02111.54
5.3.230.0050.02111.52
5.3.220.0060.02111.47
5.3.210.0050.02411.58
5.3.200.0070.01911.56
5.3.190.0040.02311.51
5.3.180.0020.02511.58
5.3.170.0040.02111.66
5.3.160.0060.01911.50
5.3.150.0070.01911.65
5.3.140.0040.02211.65
5.3.130.0040.02111.46
5.3.120.0070.02111.61
5.3.110.0050.02011.52
5.3.100.0060.01911.31
5.3.90.0040.02311.36
5.3.80.0050.02111.18
5.3.70.0020.02311.30
5.3.60.0020.02111.32
5.3.50.0070.02011.24
5.3.40.0050.02111.24
5.3.30.0050.01711.31
5.3.20.0060.01911.14
5.3.10.0070.01711.04
5.3.00.0040.02010.99
5.2.170.0030.0199.74
5.2.160.0080.0149.74
5.2.150.0060.0169.74
5.2.140.0050.0179.74
5.2.130.0040.0179.72
5.2.120.0030.0169.72
5.2.110.0040.0169.72
5.2.100.0030.0159.72
5.2.90.0040.0159.72
5.2.80.0020.0199.72
5.2.70.0040.0179.72
5.2.60.0070.0159.70
5.2.50.0040.0179.68
5.2.40.0020.0189.67
5.2.30.0060.0159.65
5.2.20.0040.0169.65
5.2.10.0020.0189.60
5.2.00.0050.0159.54
5.1.60.0040.0139.18
5.1.50.0010.0179.17
5.1.40.0030.0149.17
5.1.30.0030.0169.34
5.1.20.0030.0189.35
5.1.10.0020.0169.21
5.1.00.0040.0179.21
5.0.50.0060.0118.45
5.0.40.0020.0128.35
5.0.30.0030.0178.26
5.0.20.0030.0118.24
5.0.10.0040.0128.23
5.0.00.0020.0178.23
4.4.90.0040.0077.52
4.4.80.0010.0107.51
4.4.70.0030.0097.50
4.4.60.0010.0117.50
4.4.50.0010.0127.51
4.4.40.0010.0167.48
4.4.30.0010.0107.51
4.4.20.0020.0137.55
4.4.10.0030.0097.55
4.4.00.0030.0167.51
4.3.110.0020.0107.46
4.3.100.0020.0097.46
4.3.90.0020.0167.44
4.3.80.0020.0197.42
4.3.70.0030.0087.44
4.3.60.0060.0127.44
4.3.50.0020.0107.44
4.3.40.0020.0157.40
4.3.30.0010.0116.78
4.3.20.0020.0096.77
4.3.10.0010.0116.75
4.3.00.0070.0128.70

preferences:
47.15 ms | 401 KiB | 5 Q