3v4l.org

run code in 300+ PHP versions simultaneously
<?php //set up the database connection $servername = "192.129.1.209"; $username = "meaadmin"; $password = "Kasten_15&"; $dbname = "typo3mea"; $conn = mysql_connect($servername, $username, $password); mysql_select_db($dbname); echo "connected successfully" . '<br>'; //read the json file content $jsondata = file_get_contents('http://127.0.0.1:8000/api/thesis/?format=json'); //convert json object to php array $data = json_decode($jsondata); //var_dump($data); //get the thesis details //$id = $data['id']; //$author = $data['author']; //$type = $data['type']; //$title = $data['title']; //$year = $data['year']; //insert into mysql table foreach($data -> title as $title) { $sql = "INSERT INTO mea_thesis(title) VALUES('$title')"; } //debug if(!mysql_query($sql,$conn)) { die('Error : '.mysql_error()); } //database connection close mysql_close($conn); echo "Hello Munir :D"; //print $data["objects"]; //echo $data; ?>

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.00318.85
8.3.30.0070.00718.85
8.3.20.0040.00420.38
8.3.10.0040.00423.48
8.3.00.0000.00822.39
8.2.170.0040.01122.96
8.2.160.0090.00622.30
8.2.150.0080.00024.18
8.2.140.0070.00024.66
8.2.130.0030.00626.16
8.2.120.0070.00021.06
8.2.110.0060.00320.94
8.2.100.0080.00317.75
8.2.90.0030.00619.09
8.2.80.0040.00417.97
8.2.70.0040.00417.50
8.2.60.0000.00817.93
8.2.50.0000.00818.07
8.2.40.0080.00021.10
8.2.30.0040.00419.74
8.2.20.0000.00917.69
8.2.10.0080.00017.99
8.2.00.0020.00517.93
8.1.270.0060.00320.25
8.1.260.0040.00426.35
8.1.250.0050.00328.09
8.1.240.0000.00922.67
8.1.230.0110.00717.42
8.1.220.0080.00017.77
8.1.210.0080.00018.77
8.1.200.0060.00317.35
8.1.190.0040.00417.22
8.1.180.0080.00018.10
8.1.170.0040.00418.61
8.1.160.0040.00421.91
8.1.150.0040.00418.78
8.1.140.0040.00417.33
8.1.130.0030.00317.68
8.1.120.0000.00917.33
8.1.110.0020.00517.30
8.1.100.0000.00717.40
8.1.90.0040.00417.28
8.1.80.0040.00417.29
8.1.70.0040.00417.38
8.1.60.0000.00717.52
8.1.50.0090.00017.53
8.1.40.0030.00517.50
8.1.30.0090.00017.50
8.1.20.0030.00617.68
8.1.10.0000.00817.44
8.1.00.0040.00717.52
8.0.300.0080.00018.77
8.0.290.0000.00716.63
8.0.280.0030.00318.32
8.0.270.0070.00017.26
8.0.260.0000.00617.19
8.0.250.0030.00516.93
8.0.240.0040.00416.95
8.0.230.0000.00916.85
8.0.220.0070.00016.94
8.0.210.0040.00416.89
8.0.200.0000.00716.96
8.0.190.0030.00616.97
8.0.180.0050.00216.91
8.0.170.0030.00616.91
8.0.160.0040.00416.85
8.0.150.0070.00016.90
8.0.140.0000.00716.71
8.0.130.0030.00313.26
8.0.120.0040.00416.70
8.0.110.0040.00416.92
8.0.100.0000.00716.84
8.0.90.0050.00316.81
8.0.80.0030.01416.77
8.0.70.0000.00816.92
8.0.60.0040.00417.01
8.0.50.0000.00716.83
8.0.30.0090.00916.99
8.0.20.0080.01117.40
8.0.10.0000.00716.96
8.0.00.0070.01016.55
7.4.330.0050.00015.09
7.4.320.0040.00416.36
7.4.300.0070.00016.55
7.4.290.0040.00416.43
7.4.280.0000.00816.53
7.4.270.0000.00716.48
7.4.260.0030.00316.47
7.4.250.0040.00416.49
7.4.240.0000.00716.52
7.4.230.0030.00316.50
7.4.220.0130.01316.67
7.4.210.0080.00816.58
7.4.200.0000.00816.63
7.4.160.0100.00716.61
7.4.150.0150.00317.40
7.4.140.0120.01017.86
7.4.130.0110.00616.62
7.4.120.0070.01116.52
7.4.110.0100.01316.70
7.4.100.0130.01016.41
7.4.90.0080.00816.55
7.4.80.0190.00619.39
7.4.70.0110.00616.51
7.4.60.0100.00716.46
7.4.50.0000.00516.46
7.4.40.0170.00016.70
7.4.30.0130.00916.39
7.4.00.0050.01214.90
7.3.330.0050.00013.24
7.3.320.0030.00513.01
7.3.310.0030.00316.32
7.3.300.0000.00716.30
7.3.290.0000.00716.23
7.3.280.0090.00816.25
7.3.270.0140.00317.40
7.3.260.0140.00316.40
7.3.250.0060.01216.46
7.3.240.0150.00616.52
7.3.230.0090.00916.52
7.3.210.0130.00316.43
7.3.200.0070.01519.39
7.3.190.0090.00916.41
7.3.180.0090.00616.24
7.3.170.0080.00816.27
7.3.160.0110.00716.39
7.3.120.0080.00814.91
7.3.110.0100.00714.86
7.3.100.0030.01214.84
7.3.90.0070.00714.82
7.3.80.0030.00914.71
7.3.70.0030.00614.84
7.3.60.0100.00714.81
7.3.50.0100.00714.71
7.3.40.0090.00014.53
7.3.30.0000.01314.70
7.3.20.0000.01316.56
7.3.10.0100.00316.68
7.3.00.0040.00716.64
7.2.330.0090.01616.58
7.2.320.0100.00616.58
7.2.310.0080.00816.63
7.2.300.0170.00616.46
7.2.290.0100.00716.40
7.2.250.0040.01514.57
7.2.240.0090.00914.80
7.2.230.0060.00914.94
7.2.220.0060.00915.18
7.2.210.0030.00915.10
7.2.200.0040.01214.80
7.2.190.0000.01114.59
7.2.180.0000.01214.83
7.2.170.0030.00615.00
7.2.160.0030.00714.79
7.2.150.0030.00916.83
7.2.140.0060.00616.81
7.2.130.0030.00616.91
7.2.120.0040.01216.64
7.2.110.0090.00616.79
7.2.100.0030.01016.49
7.2.90.0000.01516.56
7.2.80.0070.00716.76
7.2.70.0030.01016.73
7.2.60.0080.00816.39
7.2.50.0090.00316.88
7.2.40.0060.00616.82
7.2.30.0030.01216.82
7.2.20.0040.01216.77
7.2.10.0030.01116.82
7.2.00.0030.01017.98
7.1.330.0030.01315.56
7.1.320.0040.01115.83
7.1.310.0080.00315.68
7.1.300.0070.00715.40
7.1.290.0030.00615.66
7.1.280.0080.00415.30
7.1.270.0040.00715.68
7.1.260.0040.00815.44
7.1.250.0000.01215.49
7.1.240.0040.00715.65
7.1.230.0050.00315.25
7.1.220.0070.00715.63
7.1.210.0000.01315.59
7.1.200.0070.00715.67
7.1.190.0030.01015.65
7.1.180.0030.01215.68
7.1.170.0100.00315.74
7.1.160.0040.01215.75
7.1.150.0030.01015.36
7.1.140.0100.00315.75
7.1.130.0060.00815.64
7.1.120.0000.01215.61
7.1.110.0040.00815.73
7.1.100.0020.01216.99
7.1.90.0060.00615.77
7.1.80.0100.00315.67
7.1.70.0060.00516.26
7.1.60.0100.00917.40
7.1.50.0080.01216.28
7.1.40.0110.00315.67
7.1.30.0110.00315.71
7.1.20.0000.01115.61
7.1.10.0040.00915.34
7.1.00.0070.03819.03
7.0.330.0030.00715.11
7.0.320.0000.01515.18
7.0.310.0080.00415.35
7.0.300.0090.00315.07
7.0.290.0050.00515.18
7.0.280.0030.00914.96
7.0.270.0060.00315.30
7.0.260.0000.01215.08
7.0.250.0060.01115.43
7.0.240.0090.00615.44
7.0.230.0040.01115.40
7.0.220.0120.00315.28
7.0.210.0120.00615.36
7.0.200.0030.00615.81
7.0.190.0030.00915.40
7.0.180.0060.00315.30
7.0.170.0060.00615.40
7.0.160.0000.01015.38
7.0.150.0000.00915.42
7.0.140.0030.01015.30
7.0.130.0060.00615.46
7.0.120.0030.00715.50
7.0.110.0080.00615.35
7.0.100.0000.01115.23
7.0.90.0000.01415.22
7.0.80.0080.00315.31
7.0.70.0030.01015.39
7.0.60.0050.04517.62
7.0.50.0030.04816.64
7.0.40.0050.02516.66
7.0.30.0170.02316.90
7.0.20.0070.02716.73
7.0.10.0100.04516.71
7.0.00.0050.03916.74
5.6.400.0000.01414.52
5.6.390.0000.01314.04
5.6.380.0030.01414.43
5.6.370.0070.00314.00
5.6.360.0040.00714.05
5.6.350.0070.00714.39
5.6.340.0030.00914.13
5.6.330.0060.00614.32
5.6.320.0070.00714.44
5.6.310.0070.01014.25
5.6.300.0120.00314.46
5.6.290.0060.00614.35
5.6.280.0020.04117.53
5.6.270.0030.00914.54
5.6.260.0000.01413.90
5.6.250.0060.00914.06
5.6.240.0040.01413.92
5.6.230.0090.00614.23
5.6.220.0000.01314.34
5.6.210.0100.02017.55
5.6.200.0050.02716.10
5.6.190.0050.04817.51
5.6.180.2000.02217.28
5.6.170.0130.04817.49
5.6.160.0050.03117.24
5.6.150.0070.02915.98
5.6.140.0130.02216.08
5.6.130.0070.04216.31
5.6.120.0050.04517.51
5.6.110.0080.03617.57
5.6.100.0100.04417.65
5.6.90.0110.03017.72
5.6.80.0100.03817.24
5.6.70.2120.02417.19
5.6.60.0150.00314.10
5.6.50.0080.00613.95
5.6.40.0030.01014.04
5.6.30.0040.01114.23
5.6.20.0090.00614.14
5.6.10.0070.01014.00
5.6.00.0000.01214.07
5.5.380.0080.00614.01
5.5.370.0070.01114.00
5.5.360.0140.00013.79
5.5.350.0160.02017.26
5.5.340.0060.03515.91
5.5.330.0030.04917.17
5.5.320.1700.02417.15
5.5.310.0140.02417.01
5.5.300.0050.03115.85
5.5.290.0020.03016.02
5.5.280.0100.04017.51
5.5.270.0080.02917.57
5.5.260.0130.04417.23
5.5.250.0080.04517.27
5.5.240.0080.04416.97
5.5.230.0040.00713.67
5.5.220.0030.01014.04
5.5.210.0090.00613.80
5.5.200.0080.00013.87
5.5.190.0000.01414.08
5.5.180.0120.00614.10
5.5.170.0080.00413.91
5.5.160.0100.00314.22
5.5.150.0100.00314.20
5.5.140.0070.00713.85
5.5.130.0030.01213.93
5.5.120.0030.00514.11
5.5.110.0070.00713.91
5.5.100.0000.01113.70
5.5.90.0080.00813.97
5.5.80.0100.00313.77
5.5.70.0080.00814.37
5.5.60.0060.00314.15
5.5.50.0030.00814.11
5.5.40.0070.01013.84
5.5.30.0090.00613.57
5.5.20.0030.01014.00
5.5.10.0030.00913.68
5.5.00.0040.00414.07
5.4.450.0430.03115.43
5.4.440.0330.03515.29
5.4.430.0300.03715.35
5.4.420.0400.03015.51
5.4.410.0350.03615.48
5.4.400.0400.02815.31
5.4.390.0480.02215.12
5.4.380.0450.03015.36
5.4.370.0440.03115.26
5.4.360.0420.03215.31
5.4.350.0380.03315.37
5.4.340.0370.03315.37
5.4.330.0050.00511.44
5.4.320.0370.02815.36
5.4.310.0390.02815.33
5.4.300.0360.02815.36
5.4.290.0420.02715.21
5.4.280.0330.03015.29
5.4.270.0370.02915.29
5.4.260.0370.03215.26
5.4.250.0420.03015.20
5.4.240.0380.02715.33
5.4.230.0400.02915.32
5.4.220.0400.03215.29
5.4.210.0400.03615.20
5.4.200.0310.03114.04
5.4.190.0430.02615.27
5.4.180.0380.03015.27
5.4.170.0330.03415.15
5.4.160.0400.02715.28
5.4.150.0390.02815.27
5.4.140.0520.03413.94
5.4.130.0520.03513.83
5.4.120.0510.02513.94
5.4.110.0540.03113.89
5.4.100.0450.03713.86
5.4.90.0320.03013.85
5.4.80.0420.02413.97
5.4.70.0420.02913.88
5.4.60.0150.01513.95
5.4.50.0030.03513.92
5.4.40.0140.03813.86
5.4.30.0220.02713.74
5.4.20.0170.03013.92
5.4.10.0070.00311.44
5.4.00.0030.00311.44

preferences:
70.92 ms | 400 KiB | 5 Q