3v4l.org

run code in 300+ PHP versions simultaneously
<?php function my_udf_md5($string) { throw new \Exception("test exception\n"); } $db = new SQLite3(':memory:'); $db->createFunction('my_udf_md5', 'my_udf_md5'); try { $result = $db->querySingle('SELECT my_udf_md5("test")'); var_dump($result); } catch(\Exception $e) { echo "Exception: ".$e->getMessage(); }

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.0130.01017.25
8.3.50.0140.00722.35
8.3.40.0150.00019.66
8.3.30.0040.01119.42
8.3.20.0000.00821.06
8.3.10.0050.00322.66
8.3.00.0040.00420.72
8.2.180.0070.00717.38
8.2.170.0090.00622.96
8.2.160.0030.01221.80
8.2.150.0000.00824.18
8.2.140.0040.00424.66
8.2.130.0040.00423.01
8.2.120.0040.00426.35
8.2.110.0040.00721.80
8.2.100.0080.00418.53
8.2.90.0040.00419.84
8.2.80.0000.00818.38
8.2.70.0000.01118.25
8.2.60.0040.00418.55
8.2.50.0080.00018.25
8.2.40.0050.00323.00
8.2.30.0000.00821.77
8.2.20.0040.00418.45
8.2.10.0040.00418.86
8.2.00.0020.00518.87
8.1.280.0110.00425.92
8.1.270.0040.00424.54
8.1.260.0040.00428.09
8.1.250.0000.00828.09
8.1.240.0000.00924.67
8.1.230.0080.00321.63
8.1.220.0080.00018.39
8.1.210.0040.00418.77
8.1.200.0090.00017.98
8.1.190.0040.00418.10
8.1.180.0000.00818.10
8.1.170.0050.00319.12
8.1.160.0040.00422.81
8.1.150.0050.00321.39
8.1.140.0080.00020.33
8.1.130.0020.00518.42
8.1.120.0070.00018.27
8.1.110.0060.00318.18
8.1.100.0050.00518.13
8.1.90.0040.00518.27
8.1.80.0000.00818.23
8.1.70.0090.00018.12
8.1.60.0000.00918.38
8.1.50.0000.00818.34
8.1.40.0050.00518.33
8.1.30.0030.00518.36
8.1.20.0040.00418.32
8.1.10.0000.00818.32
8.1.00.0090.00418.32
8.0.300.0040.00418.77
8.0.290.0060.00317.50
8.0.280.0080.00019.25
8.0.270.0040.00418.00
8.0.260.0030.00317.96
8.0.250.0000.00717.79
8.0.240.0050.00517.73
8.0.230.0030.00317.79
8.0.220.0000.00717.60
8.0.210.0060.00317.71
8.0.200.0070.00017.81
8.0.190.0050.00217.80
8.0.180.0080.00017.62
8.0.170.0000.00817.60
8.0.160.0040.00417.77
8.0.150.0030.00517.66
8.0.140.0040.00417.71
8.0.130.0030.00314.13
8.0.120.0000.00817.62
8.0.110.0050.00317.75
8.0.100.0000.00817.79
8.0.90.0040.00417.59
8.0.80.0070.00717.73
8.0.70.0000.00817.71
8.0.60.0000.00817.76
8.0.50.0030.00517.58
8.0.30.0100.01017.80
8.0.20.0130.00817.51
8.0.10.0040.00417.84
8.0.00.0030.01417.67
7.4.330.0030.00315.88
7.4.320.0060.00017.25
7.4.300.0040.00417.41
7.4.290.0070.00017.35
7.4.280.0070.00217.25
7.4.270.0040.00417.21
7.4.260.0040.00517.38
7.4.250.0050.00317.25
7.4.240.0080.00017.29
7.4.230.0040.00417.43
7.4.220.0040.01117.39
7.4.210.0070.00717.32
7.4.200.0020.00517.07
7.4.160.0080.00817.40
7.4.150.0180.00017.40
7.4.140.0120.00617.86
7.4.130.0140.00517.15
7.4.120.0140.00317.37
7.4.110.0060.01317.19
7.4.100.0060.01217.19
7.4.90.0110.01117.46
7.4.80.0120.00619.39
7.4.70.0110.00617.32
7.4.60.0120.00917.18
7.4.50.0000.01517.23
7.4.40.0080.00817.23
7.4.30.0150.00817.30
7.4.00.0050.01015.62
7.3.330.0030.00314.00
7.3.320.0060.00014.01
7.3.310.0000.00716.82
7.3.300.0050.00216.82
7.3.290.0080.00817.03
7.3.280.0090.01117.01
7.3.270.0120.00617.40
7.3.260.0120.00617.02
7.3.250.0110.00617.12
7.3.240.0100.01117.07
7.3.230.0030.01517.08
7.3.210.0030.01517.12
7.3.200.0170.00316.95
7.3.190.0030.01317.03
7.3.180.0190.02616.93
7.3.170.0130.00317.08
7.3.160.0080.00916.98
7.3.120.0000.01815.55
7.3.110.0030.01015.82
7.3.100.0060.01315.51
7.3.90.0060.00615.63
7.3.80.0090.00615.73
7.3.70.0090.00915.52
7.3.60.0060.00615.52
7.3.50.0000.01515.49
7.3.40.0060.00615.61
7.3.30.0070.00715.41
7.3.20.0030.01417.46
7.3.10.0070.00717.14
7.3.00.0060.00917.09
7.2.330.0140.00417.36
7.2.320.0100.00717.16
7.2.310.0120.01217.18
7.2.300.0100.01017.39
7.2.290.0160.00617.54
7.2.250.0030.01315.99
7.2.240.0100.00715.97
7.2.230.0070.01015.76
7.2.220.0130.00615.95
7.2.210.0090.00315.95
7.2.200.0030.00715.86
7.2.190.0060.01215.59
7.2.180.0060.00915.71
7.2.170.0080.00615.71
7.2.80.0030.01017.22
7.2.60.0060.00317.66
7.1.330.0060.00916.57
7.1.320.0040.01416.34
7.1.310.0060.00916.49
7.1.300.0030.01016.37
7.1.290.0040.00416.19
7.1.280.0030.00616.50
7.1.270.0000.01616.37
7.1.260.0030.01015.98
7.1.200.0040.01116.18
7.1.70.0100.00017.43
7.1.60.0000.01419.75
7.1.50.0090.01217.45
7.1.00.0070.07322.43
7.0.200.0040.00717.49
7.0.90.4930.07319.97
7.0.80.2370.06319.92
7.0.70.0100.07720.04
7.0.60.0100.06020.18
7.0.50.0170.05720.37
7.0.40.0130.06020.39
7.0.30.0130.07320.38
7.0.20.0100.06720.34
7.0.10.0100.06020.38
7.0.00.0300.05020.38
5.6.240.0130.07320.55
5.6.230.0100.06020.68
5.6.220.0130.07720.78
5.6.210.0170.05320.70
5.6.200.0170.05721.09
5.6.190.0200.05021.17
5.6.180.0170.05321.27
5.6.170.0170.05721.04
5.6.160.0170.07021.11
5.6.150.0100.07021.16
5.6.140.0230.06021.16
5.6.130.0330.05021.14
5.6.120.0270.07021.16
5.6.110.0100.07321.12
5.6.100.0070.07021.16
5.6.90.0130.06321.22
5.6.80.0100.06020.57
5.6.70.0100.06020.54
5.6.60.0070.07020.37
5.6.50.0170.06320.52
5.6.40.0170.05320.52
5.6.30.0130.05320.56
5.6.20.0130.06020.39
5.6.10.0170.05720.46
5.6.00.0230.05020.48

preferences:
66.54 ms | 401 KiB | 5 Q