3v4l.org

run code in 300+ PHP versions simultaneously
<?php // Testing shutdown sequence function checkSqlite() { if (!$GLOBALS['pdo']) echo "PDO connection\n"; } $pdo = new PDO('sqlite:'); function shutdown() { checkSqlite(); echo "register_shutdown_function\n"; } register_shutdown_function('shutdown'); class MyClass { function __destruct() { checkSqlite(); echo "Object destructor\n"; } } function obcallback($buffer) { checkSqlite(); $buffer .= "Output buffer callback\n"; return $buffer; } ob_start('obcallback'); $myObject = new MyClass; function dummy() { return true; } function sessionclose() { checkSqlite(); echo "Session close\n"; return true; } function sessionwrite() { checkSqlite(); echo "Session write\n"; return true; } session_set_save_handler('dummy','sessionclose','dummy','sessionwrite','dummy','dummy'); session_start(); ?>

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.40.0120.00319.25
8.3.30.0140.00019.34
8.3.20.0070.00720.63
8.3.10.0080.00024.11
8.3.00.0040.00422.19
8.2.170.0150.00022.96
8.2.160.0100.00320.99
8.2.150.0030.00624.18
8.2.140.0050.00324.66
8.2.130.0050.00321.72
8.2.120.0000.00826.35
8.2.110.0100.00019.71
8.2.100.0080.00418.43
8.2.90.0040.00419.75
8.2.80.0000.00818.00
8.2.70.0030.00618.00
8.2.60.0050.00318.43
8.2.50.0080.00318.09
8.2.40.0080.00022.50
8.2.30.0040.00419.93
8.2.20.0090.00018.35
8.2.10.0050.00318.61
8.2.00.0000.00918.79
8.1.270.0000.00822.52
8.1.260.0000.00728.09
8.1.250.0040.00428.09
8.1.240.0000.01022.86
8.1.230.0080.00318.33
8.1.220.0000.00818.16
8.1.210.0050.00418.77
8.1.200.0030.00617.88
8.1.190.0050.00319.51
8.1.180.0050.00318.10
8.1.170.0080.00019.15
8.1.160.0000.00921.13
8.1.150.0030.00519.34
8.1.140.0000.00919.86
8.1.130.0030.00618.19
8.1.120.0030.00317.94
8.1.110.0050.00317.93
8.1.100.0040.00417.91
8.1.90.0000.00817.89
8.1.80.0000.00817.93
8.1.70.0030.00317.90
8.1.60.0040.00418.15
8.1.50.0000.01017.98
8.1.40.0040.00418.06
8.1.30.0050.00318.11
8.1.20.0040.00418.14
8.1.10.0000.00818.05
8.1.00.0000.00818.01
8.0.300.0000.00718.77
8.0.290.0070.00017.25
8.0.280.0000.00718.86
8.0.270.0030.00317.63
8.0.260.0030.00317.61
8.0.250.0040.00417.43
8.0.240.0030.00517.51
8.0.230.0040.00417.43
8.0.220.0000.00917.38
8.0.210.0000.00717.34
8.0.200.0030.00317.48
8.0.190.0050.00317.46
8.0.180.0000.00817.45
8.0.170.0040.00417.46
8.0.160.0040.00417.30
8.0.150.0030.00617.45
8.0.140.0050.00217.39
8.0.130.0000.00713.91
8.0.120.0000.00817.38
8.0.110.0050.00317.34
8.0.100.0050.00317.54
8.0.90.0050.00217.27
8.0.80.0070.01017.58
8.0.70.0000.00717.55
8.0.60.0030.00717.22
8.0.50.0040.00417.26
8.0.30.0070.01517.46
8.0.20.0090.01017.59
8.0.10.0050.00317.59
8.0.00.0100.00717.26
7.4.330.0020.00217.16
7.4.320.0030.00316.93
7.4.300.0040.00417.05
7.4.290.0070.00017.12
7.4.280.0040.00417.03
7.4.270.0050.00317.14
7.4.260.0080.00016.92
7.4.250.0000.00816.91
7.4.240.0000.00816.87
7.4.230.0030.00516.73
7.4.220.0150.00417.26
7.4.210.0100.00617.08
7.4.200.0050.00317.13
7.4.160.0150.00317.18
7.4.150.0060.01217.40
7.4.140.0100.01017.86
7.4.130.0100.00816.96
7.4.120.0160.00317.03
7.4.110.0130.00717.04
7.4.100.0100.01016.86
7.4.90.0130.01316.84
7.4.80.0140.00519.39
7.4.70.0060.01016.96
7.4.60.0090.00917.20
7.4.50.0040.01117.20
7.4.40.0120.00817.03
7.4.30.0060.01817.11
7.4.00.0060.01015.56
7.3.330.0030.00313.86
7.3.320.0000.00713.82
7.3.310.0000.00816.93
7.3.300.0000.00816.84
7.3.290.0040.00416.74
7.3.280.0070.01216.86
7.3.270.0150.00417.40
7.3.260.0110.00717.04
7.3.250.0080.01116.90
7.3.240.0080.01016.96
7.3.230.0090.00917.02
7.3.210.0090.00916.95
7.3.200.0140.00419.39
7.3.190.0090.00916.82
7.3.180.0110.00516.82
7.3.170.0120.00916.98
7.3.160.0150.00317.07
7.3.120.0100.00615.30
7.3.110.0070.01015.07
7.3.100.0060.01015.25
7.3.90.0150.00315.14
7.3.80.0080.00815.24
7.3.70.0040.01215.26
7.3.60.0090.00615.23
7.3.50.0110.00715.55
7.3.40.0100.00615.40
7.3.30.0110.00715.34
7.3.20.0030.01017.12
7.3.10.0120.00617.27
7.3.00.0070.01017.10
7.2.330.0090.00916.82
7.2.320.0100.01017.31
7.2.310.0070.01117.06
7.2.300.0110.00817.17
7.2.290.0060.00917.28
7.2.240.0050.00815.68
7.2.230.0060.00915.49
7.2.220.0060.00915.71
7.2.210.0070.01115.38
7.2.200.0070.00715.71
7.2.190.0090.00915.66
7.2.180.0060.01315.73
7.2.170.0120.00315.19
7.2.160.0070.01015.55
7.2.150.0000.01217.43
7.2.140.0060.00617.21
7.2.130.0040.01217.58
7.2.120.0070.01117.47
7.2.110.0070.00717.37
7.2.100.0000.01317.44
7.2.90.0090.00917.54
7.2.80.0000.01217.41
7.2.70.0110.00717.58
7.2.60.0080.00917.50
7.2.50.0060.00617.48
7.2.40.0070.01117.42
7.2.30.0070.00717.60
7.2.20.0030.01317.50
7.2.10.0040.01117.41
7.2.00.0060.00818.55
7.1.330.0080.00816.19
7.1.320.0060.00916.41
7.1.310.0120.00616.18
7.1.300.0090.00916.43
7.1.290.0090.00615.95
7.1.280.0060.00916.17
7.1.270.0030.01116.12
7.1.260.0130.00016.23
7.1.250.0000.01716.06
7.1.200.0100.00016.21
7.1.100.0040.00818.65
7.1.70.0040.00417.52
7.1.60.0070.01819.40
7.1.50.0090.00917.61
7.1.00.0070.06722.39
7.0.200.0390.01014.92
7.0.60.0200.07721.77
7.0.50.0100.08017.79
7.0.40.0070.08720.15
7.0.30.0330.07320.13
7.0.20.0370.07720.29
7.0.10.0070.08720.31
7.0.00.0130.07720.25
5.6.280.0070.04721.12
5.6.210.0100.07720.52
5.6.200.0100.08018.27
5.6.190.0070.07720.84
5.6.180.0130.08020.84
5.6.170.0330.05020.64
5.6.160.0130.06720.46
5.6.150.0130.07018.25
5.6.140.0030.04018.27
5.6.130.0030.04018.24
5.6.120.0130.08021.20
5.6.110.0070.06021.01
5.6.100.0000.04721.05
5.6.90.0130.07721.13
5.6.80.0100.06720.42
5.5.350.0030.06720.45
5.5.340.0230.06318.14
5.5.330.0100.08320.20
5.5.320.0500.06720.41
5.5.310.0170.04020.36
5.5.300.0000.04318.02
5.5.290.0170.07318.04
5.5.280.0070.07720.73
5.5.270.0100.07320.66
5.5.260.0200.07320.82
5.5.250.0030.08020.64
5.5.240.0270.06720.12

preferences:
38.4 ms | 400 KiB | 5 Q