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 */ class Auto { private $nazov; private $model; function __construct($nazov,$model){ $this->model=$model; $this->nazov=$nazov; } function getNazov() { return $this->nazov; } function getModel() { return $this->model; } } 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.0070.00716.75
8.3.50.0080.00818.30
8.3.40.0150.00018.84
8.3.30.0110.00418.67
8.3.20.0040.00420.33
8.3.10.0030.00623.45
8.3.00.0040.00419.38
8.2.180.0060.01018.27
8.2.170.0040.01122.96
8.2.160.0070.01020.52
8.2.150.0000.00824.18
8.2.140.0080.00024.66
8.2.130.0060.00319.23
8.2.120.0040.00426.35
8.2.110.0050.00520.38
8.2.100.0070.00418.03
8.2.90.0040.00419.40
8.2.80.0060.00317.97
8.2.70.0060.00317.75
8.2.60.0040.00417.93
8.2.50.0030.00618.07
8.2.40.0050.00319.32
8.2.30.0000.00720.55
8.2.20.0090.00017.66
8.2.10.0000.00818.01
8.2.00.0000.00718.21
8.1.280.0070.01025.92
8.1.270.0090.00323.96
8.1.260.0040.00428.09
8.1.250.0080.00028.09
8.1.240.0080.00024.03
8.1.230.0070.00317.79
8.1.220.0030.00617.74
8.1.210.0060.00318.77
8.1.200.0060.00317.48
8.1.190.0000.00817.23
8.1.180.0040.00418.10
8.1.170.0070.00018.79
8.1.160.0000.00721.99
8.1.150.0040.00418.83
8.1.140.0060.00319.61
8.1.130.0030.00317.65
8.1.120.0040.00417.49
8.1.110.0070.00017.47
8.1.100.0070.00017.38
8.1.90.0040.00417.56
8.1.80.0080.00017.50
8.1.70.0030.00317.50
8.1.60.0040.00417.63
8.1.50.0060.00317.49
8.1.40.0040.00817.45
8.1.30.0090.00017.59
8.1.20.0000.00817.55
8.1.10.0060.00317.62
8.1.00.0040.00417.55
8.0.300.0050.00318.77
8.0.290.0000.00716.75
8.0.280.0030.00318.52
8.0.270.0070.00017.25
8.0.260.0030.00317.29
8.0.250.0030.00317.04
8.0.240.0050.00316.92
8.0.230.0000.00817.06
8.0.220.0030.00317.00
8.0.210.0040.00416.90
8.0.200.0000.00617.00
8.0.190.0040.00416.90
8.0.180.0050.00316.98
8.0.170.0000.00816.88
8.0.160.0000.00716.94
8.0.150.0040.00416.86
8.0.140.0040.00416.83
8.0.130.0000.00513.39
8.0.120.0000.00816.78
8.0.110.0040.00416.79
8.0.100.0050.00316.96
8.0.90.0070.00016.96
8.0.80.0060.00916.86
8.0.70.0080.00016.71
8.0.60.0040.00416.94
8.0.50.0020.00516.87
8.0.30.0120.00517.04
8.0.20.0060.01317.40
8.0.10.0040.00416.95
8.0.00.0110.01016.79
7.4.330.0020.00216.82
7.4.320.0030.00316.47
7.4.300.0040.00416.64
7.4.290.0000.00716.58
7.4.280.0110.00016.47
7.4.270.0070.00016.57
7.4.260.0040.00416.49
7.4.250.0040.00416.48
7.4.240.0050.00216.51
7.4.230.0000.00716.55
7.4.220.0100.01316.46
7.4.210.0090.01216.64
7.4.200.0050.00216.67
7.4.160.0080.00816.52
7.4.150.0170.00317.40
7.4.140.0130.00817.86
7.4.130.0190.00416.63
7.4.120.0090.00816.46
7.4.110.0100.01016.53
7.4.100.0160.00616.53
7.4.90.0080.00816.47
7.4.80.0100.01319.39
7.4.70.0090.00916.66
7.4.60.0100.00716.43
7.4.50.0110.00616.26
7.4.40.0140.00616.19
7.4.30.0040.01316.26
7.4.20.0100.00616.09
7.4.10.0130.00416.38
7.4.00.0110.00615.86
7.3.330.0000.00513.36
7.3.320.0030.00313.20
7.3.310.0000.00816.16
7.3.300.0040.00416.21
7.3.290.0080.00716.33
7.3.280.0120.00716.32
7.3.270.0120.00617.40
7.3.260.0130.00616.61
7.3.240.0110.01016.56
7.3.230.0070.01016.67
7.3.210.0120.01316.30
7.3.200.0060.01216.32
7.3.190.0060.01016.51
7.3.180.0040.01216.44
7.3.170.0140.00516.30
7.3.160.0100.01016.56
7.3.150.0110.00616.64
7.3.140.0140.00316.23
7.3.130.0080.00816.20
7.3.120.0140.00716.58
7.3.110.0090.00616.24
7.3.100.0120.00316.26
7.3.90.0060.00916.60
7.3.80.0030.01816.55
7.3.70.0030.01316.31
7.3.60.0140.00316.41
7.3.50.0140.00316.40
7.3.40.0110.00516.24
7.3.30.0060.00916.38
7.3.20.0090.00916.48
7.3.10.0060.00916.34
7.3.00.0140.00616.40
7.2.330.0140.00316.88
7.2.320.0120.00616.55
7.2.310.0080.00816.59
7.2.300.0090.00916.70
7.2.290.0070.01116.73
7.2.280.0140.00316.36
7.2.270.0070.01016.41
7.2.260.0070.01016.56
7.2.250.0130.00316.49
7.2.240.0060.01016.64
7.2.230.0070.01016.64
7.2.220.0110.00716.80
7.2.210.0080.00816.61
7.2.200.0040.01216.53
7.2.190.0080.00816.49
7.2.180.0060.01116.73
7.2.170.0100.00616.57
7.2.160.0060.01016.71
7.2.150.0130.00616.71
7.2.140.0080.01216.69
7.2.130.0130.00416.87
7.2.120.0110.00716.53
7.2.110.0100.00716.72
7.2.100.0100.00616.57
7.2.90.0140.00416.79
7.2.80.0000.01816.68
7.2.70.0040.01416.57
7.2.60.0020.01216.83
7.2.50.0120.00616.73
7.2.40.0030.01416.74
7.2.30.0100.00716.67
7.2.20.0120.00616.67
7.2.10.0090.00916.68
7.2.00.0080.00918.07
7.1.330.0120.00315.48
7.1.320.0120.00915.53
7.1.310.0150.00015.59
7.1.300.0080.00815.72
7.1.290.0170.00815.52
7.1.280.0030.01215.51
7.1.270.0060.00915.57
7.1.260.0090.00615.61
7.1.250.0100.00515.46
7.1.240.0130.00315.43
7.1.230.0090.00615.34
7.1.220.0070.01015.42
7.1.210.0130.01015.25
7.1.200.0070.00715.68
7.1.190.0120.00415.46
7.1.180.0050.01115.53
7.1.170.0150.00315.63
7.1.160.0000.01515.46
7.1.150.0090.00615.25
7.1.140.0090.00615.55
7.1.130.0000.02115.57
7.1.120.0090.00915.41
7.1.110.0040.01215.32
7.1.100.0060.00916.69
7.1.90.0080.00815.48
7.1.80.0100.00615.54
7.1.70.0080.00316.47
7.1.60.0090.01217.52
7.1.50.0100.00916.08
7.1.40.0090.00615.44
7.1.30.0130.00315.64
7.1.20.0000.01715.39
7.1.10.0080.00815.61
7.1.00.0100.03819.01
7.0.330.0080.00815.38
7.0.320.0080.01115.23
7.0.310.0130.00415.48
7.0.300.0060.00915.22
7.0.290.0090.00915.09
7.0.280.0120.00515.24
7.0.270.0100.01315.07
7.0.260.0090.01215.36
7.0.250.0070.01015.29
7.0.240.0090.00615.39
7.0.230.0070.01015.27
7.0.220.0120.00615.36
7.0.210.0060.01115.24
7.0.200.0130.01015.06
7.0.190.0100.00615.37
7.0.180.0040.01115.30
7.0.170.0060.00915.39
7.0.160.0120.00915.32
7.0.150.0180.00315.23
7.0.140.0100.00715.33
7.0.130.0060.01215.38
7.0.120.0070.01415.39
7.0.110.0030.01215.40
7.0.100.0100.04117.67
7.0.90.0050.02817.65
7.0.80.0080.04217.67
7.0.70.0230.02817.76
7.0.60.0070.04717.70
7.0.50.0080.04417.75
7.0.40.0100.04017.64
7.0.30.0030.03317.66
7.0.20.0080.03017.69
7.0.10.0080.04617.72
7.0.00.0080.04317.69
5.6.400.0080.01315.95
5.6.390.0030.01716.17
5.6.380.0060.01616.09
5.6.370.0110.00716.19
5.6.360.0090.00916.16
5.6.350.0070.01115.82
5.6.340.0090.01216.29
5.6.330.0130.00716.20
5.6.320.0110.00816.39
5.6.310.0090.00916.11
5.6.300.0000.01816.02
5.6.290.0060.01215.79
5.6.280.0130.04018.47
5.6.270.0110.01516.20
5.6.260.0060.01316.25
5.6.250.0030.03118.40
5.6.240.0150.04018.32
5.6.230.0020.03718.46
5.6.220.0120.03218.26
5.6.210.0120.02418.38
5.6.200.0050.03118.65
5.6.190.0060.03318.59
5.6.180.0080.04218.49
5.6.170.0070.04418.46
5.6.160.0160.04018.56
5.6.150.0160.03918.48
5.6.140.0100.04118.63
5.6.130.0080.04718.46
5.6.120.0060.03318.56
5.6.110.0080.04018.51
5.6.100.0100.03318.60
5.6.90.0070.04518.39
5.6.80.0090.03918.23
5.6.70.0100.03218.12
5.6.60.0070.03318.15
5.6.50.0100.04018.14
5.6.40.0110.04218.09
5.6.30.0070.04518.22
5.6.20.0080.04618.14
5.6.10.0180.02318.19
5.6.00.0060.04618.11
5.5.380.0080.02618.31
5.5.370.0120.04518.21
5.5.360.0110.03418.21
5.5.350.0100.04218.41
5.5.340.0060.03118.41
5.5.330.0060.04918.44
5.5.320.0060.04318.43
5.5.310.0090.04218.53
5.5.300.0080.04318.34
5.5.290.0110.04018.34
5.5.280.0120.04518.41
5.5.270.0080.04918.24
5.5.260.0040.05018.46
5.5.250.0080.02818.19
5.5.240.0060.04117.90
5.5.230.0060.03318.07
5.5.220.0020.04117.98
5.5.210.0080.02518.10
5.5.200.0120.04018.08
5.5.190.0080.03218.03
5.5.180.0120.03418.03
5.5.170.0040.01315.99
5.5.160.0070.04317.87
5.5.150.0070.03918.10
5.5.140.0090.04418.00
5.5.130.0080.03218.03
5.5.120.0050.04818.11
5.5.110.0130.04018.21
5.5.100.0080.04117.95
5.5.90.0090.04518.17
5.5.80.0090.02518.02
5.5.70.0130.04018.05
5.5.60.0080.03518.02
5.5.50.0070.04617.93
5.5.40.0090.02418.03
5.5.30.0030.04817.87
5.5.20.0090.04318.08
5.5.10.0080.04518.00
5.5.00.0060.04418.01

preferences:
47.12 ms | 400 KiB | 5 Q