3v4l.org

run code in 300+ PHP versions simultaneously
<?php include 'dbconfig.php'; $conn = $dbConnection; $query = " UPDATE Events SET title=:title, resource=:resource, start_event=:start_event, end_event=:end_event WHERE id=:id "; $statement = $conn->prepare($query); $start = date_create_from_format('D M d Y H:i:s \G\M\TO+', $_POST['start'])->format('Y-m-d H:i:s'); $end = date_create_from_format('D M d Y H:i:s \G\M\TO+', $_POST['end'])->format('Y-m-d H:i:s'); $statement->execute(array( ':id' => $_POST['id'], ':title' => $_POST['title'], ':resource' => $_POST['resource'], ':start_event' => $start, ':end_event' => $end ) ); ?> Error: [Sat Mar 30 02:47:19.549392 2019] [php7:error] [pid 25123] [client ***] PHP Fatal error: Uncaught Error: Call to a member function format() on boolean in /var/app/current/insert.php:14 Stack trace:\n#0 {main}\n thrown in /var/app/current/insert.php on line 14, referer: ***.us-west-2.elasticbeanstalk.com/

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.110.0060.00916.86
8.3.100.0030.00518.63
8.3.90.0070.01416.75
8.3.80.0040.00417.97
8.3.70.0140.00018.43
8.3.60.0070.01418.43
8.3.50.0070.00616.49
8.3.40.0120.00318.83
8.3.30.0040.01118.98
8.3.20.0080.00020.73
8.3.10.0080.00021.73
8.3.00.0080.00022.52
8.2.230.0060.00320.94
8.2.220.0000.00924.06
8.2.210.0050.00226.77
8.2.200.0050.00516.63
8.2.190.0060.01018.42
8.2.180.0090.00917.00
8.2.170.0090.01222.96
8.2.160.0140.00721.19
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0050.00319.83
8.2.120.0000.00826.35
8.2.110.0040.00721.11
8.2.100.0090.00317.91
8.2.90.0050.00317.88
8.2.80.0080.00018.80
8.2.70.0050.00518.04
8.2.60.0060.00317.50
8.2.50.0040.00417.75
8.2.40.0070.00019.53
8.2.30.0060.00319.17
8.2.20.0040.00418.09
8.2.10.0050.00319.23
8.2.00.0040.00418.29
8.1.290.0040.00418.88
8.1.280.0150.00025.92
8.1.270.0000.00820.38
8.1.260.0040.00426.35
8.1.250.0000.00828.09
8.1.240.0030.00719.59
8.1.230.0030.00819.07
8.1.220.0030.00517.80
8.1.210.0000.00818.77
8.1.200.0030.00617.36
8.1.190.0050.00317.35
8.1.180.0000.00818.10
8.1.170.0040.00418.70
8.1.160.0040.00418.84
8.1.150.0000.00718.93
8.1.140.0070.00019.04
8.1.130.0030.00320.30
8.1.120.0040.00417.50
8.1.110.0040.00417.39
8.1.100.0000.00817.50
8.1.90.0060.00317.48
8.1.80.0070.00017.30
8.1.70.0030.00317.49
8.1.60.0030.00617.58
8.1.50.0030.00517.53
8.1.40.0030.00517.58
8.1.30.0000.00817.66
8.1.20.0030.00517.62
8.1.10.0040.00417.68
8.1.00.0040.00417.66
8.0.300.0040.00418.77
8.0.290.0040.00416.88
8.0.280.0000.00718.40
8.0.270.0000.00717.37
8.0.260.0030.00318.55
8.0.250.0000.00716.99
8.0.240.0030.00617.06
8.0.230.0030.00317.16
8.0.220.0000.00717.09
8.0.210.0030.00317.12
8.0.200.0030.00317.15
8.0.190.0040.00417.04
8.0.180.0030.00517.11
8.0.170.0040.00417.12
8.0.160.0000.00716.95
8.0.150.0040.00416.88
8.0.140.0000.00717.02
8.0.130.0000.00513.41
8.0.120.0050.00316.92
8.0.110.0040.00416.97
8.0.100.0040.00417.06
8.0.90.0030.00517.04
8.0.80.0160.00717.08
8.0.70.0000.00816.94
8.0.60.0040.00416.93
8.0.50.0050.00317.05
8.0.30.0100.00717.17
8.0.20.0100.01416.92
8.0.10.0040.00416.94
8.0.00.0120.00916.72
7.4.330.0030.00315.55
7.4.320.0060.00016.69
7.4.300.0070.00316.66
7.4.290.0000.00816.49
7.4.280.0000.00816.45
7.4.270.0070.00016.55
7.4.260.0000.00816.64
7.4.250.0000.00816.60
7.4.240.0030.00316.61
7.4.230.0000.00716.62
7.4.220.0020.00516.63
7.4.210.0050.01116.61
7.4.200.0040.00316.64
7.4.160.0110.00816.67
7.4.140.0190.00617.86
7.4.130.0090.00916.64
7.4.120.0040.01616.57
7.4.110.0130.01016.55
7.4.100.0160.00016.62
7.4.90.0040.01516.63
7.4.80.0090.00919.39
7.4.70.0140.00416.48
7.4.60.0050.01116.46
7.4.50.0070.01016.46
7.4.40.0110.00616.60
7.4.00.0060.00915.05
7.3.330.0030.00313.25
7.3.320.0030.00313.34
7.3.310.0000.00716.49
7.3.300.0070.00016.44
7.3.290.0030.00316.44
7.3.280.0040.01116.29
7.3.260.0110.00816.55
7.3.240.0070.01016.49
7.3.230.0110.00616.50
7.3.210.0100.01016.49
7.3.200.0090.00916.29
7.3.190.0080.01316.25
7.3.180.0120.00616.69
7.3.170.0050.01116.39
7.3.160.0100.00716.72
7.3.30.0070.01414.33
7.3.20.0520.00714.61
7.3.10.0490.00614.82
7.3.00.0580.00614.70
7.2.330.0150.00316.45
7.2.320.0160.00716.39
7.2.310.0030.01316.68
7.2.300.0090.00916.48
7.2.290.0090.01316.72
7.2.160.0090.01214.81
7.2.150.0510.00714.75
7.2.140.0450.00614.78
7.2.130.0450.00714.77
7.2.120.0470.00714.87
7.2.110.0510.00714.70
7.2.100.0590.00715.01
7.2.90.0400.00714.93
7.2.80.1310.00314.96
7.2.70.0660.00314.80
7.2.60.0560.01015.06
7.2.50.0570.01315.00
7.2.40.0540.01714.94
7.2.30.0730.00014.76
7.2.20.0590.00714.81
7.2.10.0570.00314.95
7.2.00.0760.00014.75
7.1.270.0650.00913.70
7.1.260.0690.00713.67
7.1.250.0480.00013.96

preferences:
29.26 ms | 403 KiB | 5 Q