3v4l.org

run code in 300+ PHP versions simultaneously
<?php $foo = new PDO('sqlite:file:foo?mode=memory&cache=shared'); // add some tables and rows to foo $bar = new PDO('sqlite:file:bar?mode=memory&cache=shared'); // $bar remains totally independent $foo2 = new PDO('sqlite:file:foo?mode=memory&cache=shared'); // $foo2 contains the EXACT SAME database as $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.5.30.0090.00818.48
8.5.20.0110.00620.45
8.5.10.0110.01017.00
8.5.00.0130.00919.78
8.4.180.0100.01319.77
8.4.170.0110.01124.02
8.4.160.0090.01323.80
8.4.150.0080.00616.87
8.4.140.0150.00917.42
8.4.130.0080.01217.88
8.4.120.0070.01220.52
8.4.110.0090.01222.33
8.4.100.0110.00217.91
8.4.90.0120.00817.96
8.4.80.0110.00417.64
8.4.70.0160.01017.95
8.4.60.0230.00417.75
8.4.50.0160.00517.70
8.4.40.0410.01117.29
8.4.30.0450.00817.71
8.4.20.0430.01217.58
8.4.10.0430.00817.47
8.3.300.0090.01120.79
8.3.290.0080.01220.83
8.3.280.0110.01018.57
8.3.270.0120.00716.59
8.3.260.0120.00816.57
8.3.250.0090.00718.67
8.3.240.0110.00716.29
8.3.230.0110.00916.70
8.3.220.0180.00816.97
8.3.210.0190.00716.97
8.3.200.0410.00916.97
8.3.190.0400.00616.97
8.3.180.0360.00716.97
8.3.170.0370.00816.97
8.3.160.0330.01016.97
8.3.150.0420.00716.97
8.3.140.0430.00816.97
8.3.130.0370.00716.97
8.3.120.0430.00416.97
8.3.110.0440.00716.97
8.3.100.0430.00816.97
8.3.90.0270.00316.97
8.3.80.0220.00416.97
8.3.70.0220.00616.97
8.3.60.0200.00416.97
8.3.50.0420.00516.97
8.3.40.0200.00217.80
8.3.30.0250.00717.69
8.3.20.0320.01017.68
8.3.10.0240.00217.64
8.3.00.0130.00917.82
8.2.300.0090.00920.06
8.2.290.0130.00620.16
8.2.280.0300.00716.97
8.2.270.0250.00416.97
8.2.260.0240.00116.97
8.2.250.0160.00416.97
8.2.240.0330.00716.97
8.2.230.0370.00416.97
8.2.220.0360.00316.97
8.2.210.0240.00216.97
8.2.200.0150.00316.97
8.2.190.0260.01116.97
8.2.180.0330.00916.97
8.2.170.0400.01217.26
8.2.160.0360.00717.49
8.2.150.0320.00717.60
8.2.140.0380.00717.23
8.2.130.0380.00817.20
8.2.120.0360.01117.45
8.2.110.0390.01017.38
8.2.100.0370.00817.49
8.2.90.0350.00817.50
8.2.80.0330.01217.54
8.2.70.0410.00517.32
8.2.60.0310.00517.63
8.2.50.0380.00617.54
8.2.40.0250.00617.54
8.2.30.0360.00617.60
8.2.20.0190.00717.33
8.2.10.0330.00517.51
8.2.00.0290.01117.22
8.1.340.0160.00421.69

preferences:
43.6 ms | 859 KiB | 5 Q