3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Item { public var $id; public var $den; public var $kassa; function __construct($id, $den, $kassa){ $this->id = $id; $this->den = $den; $this->kassa = $kassa; } function getData() { return "{$this->id}, {$this->den}, {$this->kassa}"; } } $item = new Item(1, 2, 3); echo $item->getData();

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)
5.4.270.0100.06318.75
5.4.260.0130.05718.63
5.4.250.0130.06718.96
5.4.240.0030.06318.99
5.4.230.0130.05018.77
5.4.220.0130.07018.78
5.4.210.0100.05018.80
5.4.200.0130.08018.78
5.4.190.0230.06318.71
5.4.180.0030.08018.93
5.4.170.0100.07318.93
5.4.160.0100.05018.98
5.4.150.0100.07018.95
5.4.140.0070.08316.37
5.4.130.0030.07316.54
5.4.120.0170.04316.30
5.4.110.0130.06016.46
5.4.100.0030.05716.63
5.4.90.0030.05316.46
5.4.80.0130.05016.32
5.4.70.0000.07016.45
5.4.60.0130.06316.28
5.4.50.0070.05016.43
5.4.40.0030.05316.64
5.4.30.0100.05716.40
5.4.20.0100.05716.41
5.4.10.0130.06716.59
5.4.00.0100.04715.99
5.3.280.0100.04714.73
5.3.270.0100.04714.77
5.3.260.0100.07314.70
5.3.250.0070.05314.66
5.3.240.0030.05314.60
5.3.230.0030.07014.68
5.3.220.0170.07314.65
5.3.210.0100.06014.58
5.3.200.0070.06014.65
5.3.190.0070.06014.53
5.3.180.0100.07014.72
5.3.170.0130.06314.38
5.3.160.0100.04714.64
5.3.150.0030.06014.64
5.3.140.0070.06014.52
5.3.130.0070.06014.54
5.3.120.0170.07014.71
5.3.110.0130.07014.53
5.3.100.0070.06013.86
5.3.90.0070.05713.92
5.3.80.0130.06314.04
5.3.70.0000.05314.02
5.3.60.0170.04013.83
5.3.50.0100.06313.77
5.3.40.0070.06713.93
5.3.30.0000.05313.75
5.3.20.0100.05013.59
5.3.10.0030.05013.55
5.3.00.0130.06713.61
5.2.170.0100.04010.96
5.2.160.0070.04711.36
5.2.150.0030.06010.96
5.2.140.0100.05011.20
5.2.130.0030.05011.04
5.2.120.0000.04711.19
5.2.110.0100.05011.16
5.2.100.0000.04311.07
5.2.90.0030.05311.25
5.2.80.0070.05710.99
5.2.70.0070.06011.16
5.2.60.0100.05311.27
5.2.50.0070.04310.85
5.2.40.0100.04710.95
5.2.30.0100.03710.92
5.2.20.0030.04311.03
5.2.10.0030.04010.96
5.2.00.0030.04310.80
5.1.60.0130.03710.15
5.1.50.0130.03010.10
5.1.40.0130.0309.98
5.1.30.0000.05010.25
5.1.20.0070.04710.43
5.1.10.0070.04010.05
5.1.00.0070.04310.16
5.0.50.0000.0438.70
5.0.40.0030.0278.37
5.0.30.0030.0508.27
5.0.20.0070.0378.16
5.0.10.0070.0238.21
5.0.00.0000.0438.12
4.4.90.0070.0205.84
4.4.80.0000.0235.86
4.4.70.0000.0235.84
4.4.60.0070.0205.75
4.4.50.0030.0305.97
4.4.40.0030.0435.90
4.4.30.0000.0275.82
4.4.20.0000.0335.86
4.4.10.0130.0205.89
4.4.00.0000.0435.95
4.3.110.0030.0305.74
4.3.100.0000.0275.89
4.3.90.0070.0175.75
4.3.80.0000.0375.77
4.3.70.0100.0275.75
4.3.60.0000.0235.73
4.3.50.0030.0205.88
4.3.40.0100.0275.71
4.3.30.0030.0334.99
4.3.20.0000.0304.99
4.3.10.0030.0234.99
4.3.00.0000.0277.18

preferences:
141.04 ms | 1394 KiB | 7 Q