3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Core { function Core() { if ($_GET['hi']) { exit('hi'); } } function __destruct() { run(); } } function run() { global $core; if (is_object($core)) { phpinfo(); } else { var_dump($core); echo 'fuck'; } } $_GET['hi'] = 1; $core = new Core;

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.0070.01018.68
8.3.50.0180.00321.21
8.3.40.0120.00318.53
8.3.30.0100.00319.22
8.3.20.0040.00420.38
8.3.10.0050.00323.54
8.3.00.0080.00019.25
8.2.180.0150.00616.38
8.2.170.0120.00622.96
8.2.160.0100.00720.45
8.2.150.0050.00324.18
8.2.140.0070.00424.66
8.2.130.0040.00426.16
8.2.120.0070.00022.27
8.2.110.0090.00022.16
8.2.100.0080.00417.78
8.2.90.0080.00317.75
8.2.80.0030.00618.04
8.2.70.0040.00417.93
8.2.60.0000.00818.03
8.2.50.0000.00818.12
8.2.40.0060.00320.59
8.2.30.0000.00718.12
8.2.20.0040.00417.69
8.2.10.0030.00518.13
8.2.00.0000.00717.68
8.1.280.0140.00325.92
8.1.270.0060.00322.02
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0060.01522.13
8.1.230.0110.00019.06
8.1.220.0040.00417.78
8.1.210.0000.00918.77
8.1.200.0030.00717.35
8.1.190.0060.00317.23
8.1.180.0050.00318.10
8.1.170.0060.00318.64
8.1.160.0040.00421.87
8.1.150.0000.00818.89
8.1.140.0040.00417.37
8.1.130.0000.00717.82
8.1.120.0050.00217.50
8.1.110.0050.00217.48
8.1.100.0000.00817.51
8.1.90.0040.00417.48
8.1.80.0050.00317.49
8.1.70.0030.00317.41
8.1.60.0080.00017.48
8.1.50.0000.00817.44
8.1.40.0040.00417.50
8.1.30.0040.00417.58
8.1.20.0040.00417.63
8.1.10.0040.00417.50
8.1.00.0000.00717.39
8.0.300.0030.00319.60
8.0.290.0030.00616.75
8.0.280.0000.00718.39
8.0.270.0000.00716.69
8.0.260.0030.00317.25
8.0.250.0030.00616.92
8.0.240.0000.00616.96
8.0.230.0000.00716.94
8.0.220.0070.00016.90
8.0.210.0050.00316.78
8.0.200.0040.00416.97
8.0.190.0040.00716.84
8.0.180.0000.00716.90
8.0.170.0030.00616.96
8.0.160.0000.00717.00
8.0.150.0000.00716.80
8.0.140.0000.00816.79
8.0.130.0060.00013.29
8.0.120.0020.00516.85
8.0.110.0030.00616.89
8.0.100.0000.00716.89
8.0.90.0000.00816.71
8.0.80.0110.00416.89
8.0.70.0050.00316.78
8.0.60.0050.00316.76
8.0.50.0000.00716.95
8.0.30.0080.01216.85
8.0.20.0110.00717.40
8.0.10.0080.00017.03
8.0.00.0100.00816.65
7.4.330.0000.00515.02
7.4.320.0000.00616.41
7.4.300.0040.00416.42
7.4.290.0080.00016.49
7.4.280.0020.00516.49
7.4.270.0070.00016.45
7.4.260.0040.00416.35
7.4.250.0070.00016.57
7.4.240.0020.00516.58
7.4.230.0070.00016.39
7.4.220.0130.01016.53
7.4.210.0060.00916.69
7.4.200.0000.00716.71
7.4.160.0120.00916.81
7.4.150.0030.01417.40
7.4.140.0090.00917.86
7.4.130.0140.00616.63
7.4.120.0080.01016.63
7.4.110.0030.01416.66
7.4.100.0100.01016.61
7.4.90.0120.00616.57
7.4.80.0030.01419.39
7.4.70.0040.01716.51
7.4.60.0210.00616.65
7.4.50.0040.00416.32
7.4.40.0000.01816.64
7.4.30.0060.00916.65
7.4.00.0100.00715.07
7.3.330.0000.00713.43
7.3.320.0000.00513.40
7.3.310.0040.00416.30
7.3.300.0000.00716.27
7.3.290.0060.00816.40
7.3.280.0090.00616.42
7.3.270.0120.00817.40
7.3.260.0120.01216.44
7.3.250.0140.00816.39
7.3.240.0060.01616.41
7.3.230.0150.00616.55
7.3.210.0100.00716.36
7.3.200.0090.00619.39
7.3.190.0060.01316.48
7.3.180.0070.01016.51
7.3.170.0100.00616.35
7.3.160.0140.00316.64
7.3.10.0120.01016.57
7.3.00.0150.00616.17
7.2.330.0170.00016.52
7.2.320.0090.01516.68
7.2.310.0040.01516.52
7.2.300.0100.01016.45
7.2.290.0160.00816.55
7.2.130.0180.00216.70
7.2.120.0170.00516.68
7.2.110.0100.00716.66
7.2.100.0150.00916.77
7.2.90.0160.00716.73
7.2.80.0130.00616.66
7.2.70.0170.00616.60
7.2.60.0100.01216.62
7.2.50.0150.01316.85
7.2.40.0200.00716.73
7.2.30.0110.01616.60
7.2.20.0200.00516.94
7.2.10.0150.01016.63
7.2.00.0110.00717.65
7.1.250.0120.00715.54
7.1.240.0080.00815.37
7.1.230.0120.00315.78
7.1.220.0060.00615.94
7.1.210.0150.01215.40
7.1.200.0090.00815.76
7.1.190.0100.01015.43
7.1.180.0140.00615.93
7.1.170.0120.00915.63
7.1.160.0070.01415.96
7.1.150.0120.01215.75
7.1.140.0100.00715.85
7.1.130.0080.00815.50
7.1.120.0060.01215.62
7.1.110.0110.00715.59
7.1.100.0070.00915.58
7.1.90.0070.01415.81
7.1.80.0170.00315.59
7.1.70.0080.00716.35
7.1.60.0080.00816.07
7.1.50.0090.00916.04
7.1.40.0150.00315.45
7.1.30.0150.00615.53
7.1.20.0120.00415.69
7.1.10.0070.01115.36
7.1.00.0140.03618.99
7.0.330.0120.00615.06
7.0.320.0070.00415.23
7.0.310.0130.00915.29
7.0.300.0110.00615.49
7.0.290.0060.01215.27
7.0.280.0090.00315.28
7.0.270.0130.00315.29
7.0.260.0130.00615.54
7.0.250.0110.00715.08
7.0.240.0100.00315.09
7.0.230.0090.00315.55
7.0.220.0070.00715.34
7.0.210.0060.00615.46
7.0.200.0110.00515.93
7.0.190.0080.00415.37
7.0.180.0120.00315.29
7.0.170.0110.00415.29
7.0.160.0090.00415.45
7.0.150.0080.00815.56
7.0.140.0120.03318.55
7.0.130.0100.00315.60
7.0.120.0070.00715.23
7.0.110.0090.00614.93
7.0.100.0060.01115.25
7.0.90.0060.00915.25
7.0.80.0130.00615.00
7.0.70.0040.01215.18
7.0.60.0090.03917.64
7.0.50.0080.03516.55
7.0.40.0070.04516.76
7.0.30.0200.02516.78
7.0.20.0170.03516.73
7.0.10.0110.04416.83
7.0.00.0170.03016.83
5.6.380.0050.01014.21
5.6.370.0090.00614.25
5.6.360.0070.00714.54
5.6.350.0030.00914.38
5.6.340.0090.00914.30
5.6.330.0050.00514.43
5.6.320.0040.01114.55
5.6.310.0060.00714.11
5.6.300.0050.00714.19
5.6.290.0060.01214.29
5.6.280.0050.00914.06
5.6.270.0050.00814.20
5.6.260.0060.00614.10
5.6.250.0070.00714.50
5.6.240.0100.00714.50
5.6.230.0030.01214.30
5.6.220.0050.00514.34
5.6.210.0070.03917.43
5.6.200.0080.02616.19
5.6.190.0020.03517.40
5.6.180.0130.04717.38
5.6.170.0170.04017.36
5.6.160.0070.02617.44
5.6.150.0130.03916.36
5.6.140.0060.04616.22
5.6.130.0090.04316.30
5.6.120.0060.02917.63
5.6.110.0020.04717.71
5.6.100.0050.02417.74
5.6.90.0050.04817.63
5.6.80.0110.03217.27
5.6.70.2210.02117.48
5.6.60.0090.00314.30
5.6.50.0030.00914.57
5.6.40.0060.00314.30
5.6.30.0000.00714.53
5.6.20.0040.00414.33
5.6.10.0120.00314.29
5.6.00.0070.01014.25
5.5.380.0090.00610.54
5.5.370.0090.00011.07
5.5.360.0050.00310.91
5.5.350.0100.02515.69
5.5.340.0070.03114.41
5.5.330.0050.02415.71
5.5.320.0150.02815.66
5.5.310.0120.02315.51
5.5.300.0000.04214.41
5.5.290.0050.03814.63
5.5.280.0020.05115.89
5.5.270.0050.04315.79
5.5.260.0050.04216.06
5.5.250.0050.04215.81
5.5.240.0130.04015.58
5.5.230.0060.00010.86
5.5.220.0000.00611.09
5.5.210.0060.00010.99
5.5.200.0060.00611.00
5.5.190.0000.00611.04
5.5.180.0070.00411.00
5.5.170.0060.00610.75
5.5.160.0000.01010.88
5.5.150.0090.00610.45
5.5.140.0060.00610.36
5.5.130.0080.00510.82
5.5.120.0100.00510.68
5.5.110.0100.00310.59
5.5.100.0070.00710.97
5.5.90.0120.00310.58
5.5.80.0050.00810.39
5.5.70.0070.00711.02
5.5.60.0090.00611.10
5.5.50.0000.01110.38
5.5.40.0030.00910.53
5.5.30.0040.00810.69
5.5.20.0070.00711.08
5.5.10.0110.00410.78
5.5.00.0060.00610.96
5.4.450.0440.03315.24
5.4.440.0420.04715.36
5.4.430.0380.03115.27
5.4.420.0390.02615.42
5.4.410.0450.02815.13
5.4.400.0510.03315.27
5.4.390.0420.02815.06
5.4.380.0500.02915.26
5.4.370.0420.03315.19
5.4.360.0330.03315.06
5.4.350.0320.03115.04
5.4.340.0080.01911.41
5.4.330.0040.00810.76
5.4.320.0050.02311.72
5.4.310.0040.02411.64
5.4.300.0070.02211.85
5.4.290.0060.02111.67
5.4.280.0090.01911.46
5.4.270.0060.02211.63
5.4.260.0040.02611.68
5.4.250.0100.01711.71
5.4.240.0080.02411.59
5.4.230.0080.02211.69
5.4.220.0090.01911.55
5.4.210.0080.02611.67
5.4.200.0070.02211.61
5.4.190.0070.02311.63
5.4.180.0070.02411.64
5.4.170.0090.02211.88
5.4.160.0080.02111.77
5.4.150.0090.02511.54
5.4.140.0060.02311.61
5.4.130.0070.02211.64
5.4.120.0040.02411.54
5.4.110.0090.02011.46
5.4.100.0100.01911.61
5.4.90.0090.02211.52
5.4.80.0080.02011.63
5.4.70.0080.01811.56
5.4.60.0070.02111.66
5.4.50.0090.01811.54
5.4.40.0060.02211.40
5.4.30.0070.02211.59
5.4.20.0060.02211.63
5.4.10.0070.02111.58
5.4.00.0080.02411.32
5.3.290.0060.02211.76
5.3.280.0080.02411.62
5.3.270.0070.02311.55
5.3.260.0060.02511.59
5.3.250.0060.02511.76
5.3.240.0080.02011.61
5.3.230.0110.01911.63
5.3.220.0030.02411.48
5.3.210.0130.02011.59
5.3.200.0090.02311.59
5.3.190.0070.02311.50
5.3.180.0100.02311.68
5.3.170.0080.02111.70
5.3.160.0090.02411.56
5.3.150.0100.02311.68
5.3.140.0100.01911.60
5.3.130.0060.02311.68
5.3.120.0060.02311.54
5.3.110.0080.02211.54
5.3.100.0060.02411.28
5.3.90.0090.02511.37
5.3.80.0090.02111.14
5.3.70.0070.02011.28
5.3.60.0040.02411.32
5.3.50.0080.01711.24
5.3.40.0060.02211.29
5.3.30.0040.02211.34
5.3.20.0040.02311.09
5.3.10.0070.02011.00
5.3.00.0060.02111.03
5.2.170.0020.0219.42
5.2.160.0040.0199.41
5.2.150.0050.0209.37
5.2.140.0060.0189.25
5.2.130.0020.0219.33
5.2.120.0060.0159.31
5.2.110.0030.0199.26
5.2.100.0040.0189.39
5.2.90.0050.0179.22
5.2.80.0030.0199.26
5.2.70.0050.0169.16
5.2.60.0060.0179.21
5.2.50.0020.0199.11
5.2.40.0040.0199.11
5.2.30.0030.0209.09
5.2.20.0020.0219.03
5.2.10.0060.0168.93
5.2.00.0030.0189.03
5.1.60.0040.0138.22
5.1.50.0040.0148.30
5.1.40.0040.0158.35
5.1.30.0060.0138.55
5.1.20.0050.0168.57
5.1.10.0040.0178.30
5.1.00.0020.0188.21
5.0.50.0010.0137.40
5.0.40.0040.0147.32
5.0.30.0030.0207.23
5.0.20.0060.0097.22
5.0.10.0020.0127.20
5.0.00.0040.0177.20
4.4.90.0030.0126.46
4.4.80.0010.0156.45
4.4.70.0020.0106.45
4.4.60.0000.0126.45
4.4.50.0030.0096.46
4.4.40.0030.0156.43
4.4.30.0010.0126.45
4.4.20.0010.0106.49
4.4.10.0020.0106.50
4.4.00.0050.0126.45
4.3.110.0040.0116.40
4.3.100.0010.0106.40
4.3.90.0020.0116.39
4.3.80.0030.0156.36
4.3.70.0030.0096.38
4.3.60.0020.0126.38
4.3.50.0020.0136.38
4.3.40.0010.0166.34
4.3.30.0020.0115.72
4.3.20.0010.0135.71
4.3.10.0030.0095.69
4.3.00.0080.0117.55

preferences:
50.39 ms | 401 KiB | 5 Q