3v4l.org

run code in 300+ PHP versions simultaneously
<html> <head> <title>TODO supply a title</title> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> </head> <body> <table style="width: 50%"> <tr> <td><a href="?order=name">Nazov</a></td> <td><a href="?order=model">Model</a></td> <td><a href="?">Naspat</a></td> </tr> <?php /** * Created by PhpStorm. * User: maruna2 * Date: 5.11.2015 * Time: 18:31 */ include("Auto.php"); function compare($a,$b) { if(isset($_GET["order"])) { if($_GET["order"]=="name") return strcmp($a->getNazov(),$b->getNazov()); if($_GET["order"]=="model") return strcmp($a->getModel(),$b->getModel()); } return 0; } $pole; $pole[] = new Auto("Ford","Escort"); $pole[] = new Auto("Ford","Focus"); $pole[] = new Auto("Skoda","Fabia"); $pole[] = new Auto("Volkswagen","Golf"); $pole[] = new Auto("Chevrolet","Corvette"); usort($pole, "compare"); ?> <?php foreach($pole as $auto) {?> <tr> <td><?php echo $auto->getNazov()?></td> <td><?php echo $auto->getModel()?></td> </tr> <?php } ?> </table> </body> </html>

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.0140.00416.50
8.3.50.0100.01018.07
8.3.40.0040.01118.96
8.3.30.0090.00618.69
8.3.20.0050.00220.39
8.3.10.0080.00023.66
8.3.00.0040.00419.50
8.2.180.0060.01218.66
8.2.170.0100.01022.96
8.2.160.0070.00722.21
8.2.150.0040.00424.18
8.2.140.0070.00024.66
8.2.130.0060.00319.23
8.2.120.0040.00426.35
8.2.110.0040.00420.53
8.2.100.0110.00017.80
8.2.90.0080.00019.23
8.2.80.0050.00317.97
8.2.70.0040.00417.50
8.2.60.0080.00017.91
8.2.50.0060.00318.07
8.2.40.0040.00419.06
8.2.30.0030.00320.55
8.2.20.0000.00917.83
8.2.10.0030.00518.16
8.2.00.0040.00418.02
8.1.280.0120.00325.92
8.1.270.0100.00023.91
8.1.260.0060.00328.09
8.1.250.0070.00028.09
8.1.240.0030.00622.08
8.1.230.0030.00917.79
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0070.00317.36
8.1.190.0060.00317.23
8.1.180.0030.00518.10
8.1.170.0080.00018.66
8.1.160.0040.00422.05
8.1.150.0040.00418.84
8.1.140.0000.00919.56
8.1.130.0070.00017.73
8.1.120.0000.00717.41
8.1.110.0050.00317.36
8.1.100.0000.00717.41
8.1.90.0040.00417.33
8.1.80.0080.00017.29
8.1.70.0000.00717.34
8.1.60.0030.00617.61
8.1.50.0030.00617.45
8.1.40.0080.00317.47
8.1.30.0050.00317.68
8.1.20.0070.00017.74
8.1.10.0000.00817.69
8.1.00.0080.00017.39
8.0.300.0000.00718.77
8.0.290.0000.00817.00
8.0.280.0030.00318.51
8.0.270.0090.00017.24
8.0.260.0060.00017.23
8.0.250.0000.00617.07
8.0.240.0040.00417.14
8.0.230.0040.00417.13
8.0.220.0030.00317.09
8.0.210.0040.00416.93
8.0.200.0040.00417.16
8.0.190.0040.00417.09
8.0.180.0030.00616.98
8.0.170.0040.00417.09
8.0.160.0070.00016.95
8.0.150.0070.00017.06
8.0.140.0050.00316.90
8.0.130.0030.00313.53
8.0.120.0030.00517.09
8.0.110.0030.00517.05
8.0.100.0040.00417.13
8.0.90.0040.00416.98
8.0.80.0080.00817.04
8.0.70.0000.00816.95
8.0.60.0050.00316.96
8.0.50.0000.00717.09
8.0.30.0130.00517.16
8.0.20.0110.00917.40
8.0.10.0050.00217.10
8.0.00.0130.00416.73
7.4.330.0030.00316.69
7.4.320.0060.00016.57
7.4.300.0030.00316.56
7.4.290.0030.00316.55
7.4.280.0050.00416.55
7.4.270.0000.00816.59
7.4.260.0000.00716.41
7.4.250.0000.00816.62
7.4.240.0000.00716.51
7.4.230.0070.00016.31
7.4.220.0130.00716.51
7.4.210.0090.00516.72
7.4.200.0000.00716.63
7.4.160.0060.00916.39
7.4.150.0000.01617.40
7.4.140.0130.01017.86
7.4.130.0060.01416.67
7.4.120.0090.01116.60
7.4.110.0240.00416.64
7.4.100.0080.01516.44
7.4.90.0110.00716.77
7.4.80.0110.00719.39
7.4.70.0090.00916.61
7.4.60.0070.00916.37
7.4.50.0100.00516.38
7.4.40.0130.00616.38
7.4.30.0070.01016.50
7.4.20.0030.01316.18
7.4.10.0090.00916.21
7.4.00.0050.01215.99
7.3.330.0050.00013.45
7.3.320.0060.00013.25
7.3.310.0000.00716.38
7.3.300.0000.00716.29
7.3.290.0050.01116.39
7.3.280.0090.00716.41
7.3.270.0110.00817.40
7.3.260.0070.01016.43
7.3.240.0090.00916.65
7.3.230.0090.00816.59
7.3.210.0130.01016.46
7.3.200.0070.01016.47
7.3.190.0110.00616.45
7.3.180.0100.00716.28
7.3.170.0110.01116.52
7.3.160.0030.01416.46
7.3.150.0100.00616.58
7.3.140.0090.00616.42
7.3.130.0080.00816.38
7.3.120.0160.00016.35
7.3.110.0030.01316.44
7.3.100.0120.00916.28
7.3.90.0060.00916.44
7.3.80.0090.00816.45
7.3.70.0130.00416.30
7.3.60.0090.00916.38
7.3.50.0030.01316.25
7.3.40.0030.01316.37
7.3.30.0130.00316.47
7.3.20.0070.01016.40
7.3.10.0070.00816.57
7.3.00.0070.00916.41
7.2.330.0060.01216.70
7.2.320.0150.00316.73
7.2.310.0100.00716.50
7.2.300.0030.01416.48
7.2.290.0060.01116.46
7.2.280.0100.00716.46
7.2.270.0110.00616.32
7.2.260.0070.01016.54
7.2.250.0060.01316.63
7.2.240.0070.01016.60
7.2.230.0140.00316.59
7.2.220.0090.00916.49
7.2.210.0050.01416.51
7.2.200.0030.01416.37
7.2.190.0150.00316.33
7.2.180.0100.00616.52
7.2.170.0140.00316.47
7.2.160.0090.00816.45
7.2.150.0130.00416.68
7.2.140.0090.00916.82
7.2.130.0090.00616.78
7.2.120.0040.01216.72
7.2.110.0100.00616.72
7.2.100.0090.00516.90
7.2.90.0080.00716.63
7.2.80.0060.01016.75
7.2.70.0090.00616.70
7.2.60.0030.01216.80
7.2.50.0040.01116.76
7.2.40.0070.00916.77
7.2.30.0090.00516.63
7.2.20.0070.00716.76
7.2.10.0070.00716.68
7.2.00.0080.00717.35
7.1.330.0070.01315.36
7.1.320.0120.00615.59
7.1.310.0130.00315.43
7.1.300.0090.00615.41
7.1.290.0100.00615.84
7.1.280.0160.00715.39
7.1.270.0140.00715.50
7.1.260.0140.00315.50
7.1.250.0050.00915.61
7.1.240.0060.00715.65
7.1.230.0050.00915.52
7.1.220.0060.00815.57
7.1.210.0050.01015.73
7.1.200.0050.00915.48
7.1.190.0080.00815.67
7.1.180.0060.00815.63
7.1.170.0080.00515.72
7.1.160.0080.00515.72
7.1.150.0080.00815.50
7.1.140.0090.00315.41
7.1.130.0080.00615.61
7.1.120.0050.00915.38
7.1.110.0120.00415.56
7.1.100.0070.00616.44
7.1.90.0010.01115.63
7.1.80.0030.01015.71
7.1.70.0040.00916.06
7.1.60.0010.01316.90
7.1.50.0070.00815.96
7.1.40.0080.00515.73
7.1.30.0060.00615.56
7.1.20.0040.00915.72
7.1.10.0070.00615.67
7.1.00.0090.02617.88
7.0.330.0120.00215.23
7.0.320.0030.00815.18
7.0.310.0110.00615.28
7.0.300.0020.01315.26
7.0.290.0060.00814.95
7.0.280.0060.01015.07
7.0.270.0050.00915.21
7.0.260.0110.00315.04
7.0.250.0010.01015.28
7.0.240.0080.00615.41
7.0.230.0020.01415.21
7.0.220.0030.00815.28
7.0.210.0090.00415.18
7.0.200.0050.00815.08
7.0.190.0050.00915.29
7.0.180.0070.00615.22
7.0.170.0050.00815.14
7.0.160.0040.00915.33
7.0.150.0060.00715.25
7.0.140.0090.00515.19
7.0.130.0060.00615.08
7.0.120.0020.01115.32
7.0.110.0100.00515.21
7.0.100.0080.01015.27
7.0.90.0060.00615.13
7.0.80.0060.00615.31
7.0.70.0110.00215.17
7.0.60.0060.03216.72
7.0.50.0050.03216.19
7.0.40.0070.02216.30
7.0.30.0210.01416.28
7.0.20.0150.02916.11
7.0.10.0050.02016.26
7.0.00.0070.03216.17
5.6.400.0080.00815.89
5.6.390.0090.01415.66
5.6.380.0050.00714.92
5.6.370.0070.00815.15
5.6.360.0120.00414.78
5.6.350.0060.01114.99
5.6.340.0030.01214.93
5.6.330.0080.01014.87
5.6.320.0100.00415.08
5.6.310.0050.00914.98
5.6.300.0070.00715.03
5.6.290.0030.01314.82
5.6.280.0040.02017.04
5.6.270.0090.00615.12
5.6.260.0070.00714.89
5.6.250.0050.01015.05
5.6.240.0060.00815.00
5.6.230.0050.00915.07
5.6.220.0080.01015.06
5.6.210.0110.02616.92
5.6.200.0100.02915.97
5.6.190.0080.03316.92
5.6.180.0100.01916.79
5.6.170.0150.01916.86
5.6.160.0120.01516.79
5.6.150.0080.02616.08
5.6.140.0030.02315.92
5.6.130.0050.02916.03
5.6.120.0050.01916.97
5.6.110.0040.02116.99
5.6.100.0090.02016.98
5.6.90.0050.03216.85
5.6.80.0070.03216.63
5.6.70.0060.00814.93
5.6.60.0040.00914.81
5.6.50.0080.00814.76
5.6.40.0050.00915.02
5.6.30.0080.00414.79
5.6.20.0050.01014.84
5.6.10.0070.00714.78
5.6.00.0060.00914.85
5.5.380.0090.00513.31
5.5.370.0060.00613.35
5.5.360.0050.01013.56
5.5.350.0770.01715.72
5.5.340.0090.01615.04
5.5.330.0050.02015.70
5.5.320.0070.01515.75
5.5.310.0050.02315.68
5.5.300.0040.03214.89
5.5.290.0100.01914.95
5.5.280.0040.02115.86
5.5.270.0080.02115.85
5.5.260.0070.01815.99
5.5.250.0090.03015.71
5.5.240.0110.03115.58
5.5.230.0080.00313.40
5.5.220.0030.00813.45
5.5.210.0030.01113.38
5.5.200.0030.00813.35
5.5.190.0050.00713.28
5.5.180.0030.00913.16
5.5.170.0070.00513.23
5.5.160.0030.01013.27
5.5.150.0050.00713.22
5.5.140.0080.00613.35
5.5.130.0080.00513.30
5.5.120.0070.00413.28
5.5.110.0040.01013.34
5.5.100.0110.00413.24
5.5.90.0030.00913.37
5.5.80.0090.00813.30
5.5.70.0060.00913.34
5.5.60.0060.00913.40
5.5.50.0060.00913.41
5.5.40.0050.00813.28
5.5.30.0120.00413.26
5.5.20.0080.00713.26
5.5.10.0070.00513.32
5.5.00.0090.00613.31

preferences:
49.25 ms | 400 KiB | 5 Q