3v4l.org

run code in 300+ PHP versions simultaneously
<?php if ($_product->isAvailable()): ?> <p class="availability in-stock"><?php echo $this->__('Availability:') ?> <?= (int) Mage::getModel('cataloginventory/stock_item')->loadByProduct($_product)->getQty()?> <span><?php echo $this->__('in stock') ?></span></p> <?php else: ?> <p class="availability out-of-stock"><?php echo $this->__('Availability: ') ?> <span><? php echo $this->__('Call for Availability') ?></span></p> <?php endif; ?>

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.0060.01318.42
8.3.50.0090.00721.09
8.3.40.0140.00318.82
8.3.30.0100.00319.18
8.3.20.0060.00320.38
8.3.10.0060.00322.13
8.3.00.0000.00822.40
8.2.180.0140.00016.75
8.2.170.0100.00722.96
8.2.160.0140.00019.21
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0050.00326.16
8.2.120.0080.00019.36
8.2.110.0060.00322.11
8.2.100.0100.00319.51
8.2.90.0000.00819.00
8.2.80.0000.00917.97
8.2.70.0060.00317.50
8.2.60.0000.00817.93
8.2.50.0040.00418.07
8.2.40.0000.00819.82
8.2.30.0050.00318.02
8.2.20.0040.00417.55
8.2.10.0040.00417.63
8.2.00.0030.00517.71
8.1.280.0120.00325.92
8.1.270.0040.00422.14
8.1.260.0080.00026.35
8.1.250.0060.00328.09
8.1.240.0030.00623.88
8.1.230.0040.00719.02
8.1.220.0030.00517.74
8.1.210.0040.00418.77
8.1.200.0000.00817.22
8.1.190.0040.00417.43
8.1.180.0030.00518.78
8.1.170.0050.00218.72
8.1.160.0040.00422.22
8.1.150.0030.00718.43
8.1.140.0000.00717.34
8.1.130.0000.00717.66
8.1.120.0030.00317.23
8.1.110.0030.00517.30
8.1.100.0000.00717.25
8.1.90.0090.00117.26
8.1.80.0040.00417.41
8.1.70.0070.00017.25
8.1.60.0000.00817.36
8.1.50.0000.00817.44
8.1.40.0030.00617.37
8.1.30.0030.00617.51
8.1.20.0060.00317.64
8.1.10.0000.00717.50
8.1.00.0040.00417.41
8.0.300.0000.00818.77
8.0.290.0040.00417.04
8.0.280.0000.00718.32
8.0.270.0000.00717.34
8.0.260.0000.00716.90
8.0.250.0030.00317.01
8.0.240.0000.00816.98
8.0.230.0070.00016.91
8.0.220.0040.00416.81
8.0.210.0030.00316.89
8.0.200.0030.00316.87
8.0.190.0000.00716.98
8.0.180.0040.00416.94
8.0.170.0040.00416.94
8.0.160.0070.00016.80
8.0.150.0070.00316.90
8.0.140.0000.00716.77
8.0.130.0000.00713.41
8.0.120.0050.00316.88
8.0.110.0040.00416.84
8.0.100.0040.00416.95
8.0.90.0000.00716.71
8.0.80.0090.00616.90
8.0.70.0070.00016.79
8.0.60.0040.00416.83
8.0.50.0040.00417.03
8.0.30.0120.01017.02
8.0.20.0090.01217.40
8.0.10.0040.00416.89
8.0.00.0080.01416.69
7.4.330.0050.00015.00
7.4.320.0030.00316.48
7.4.300.0070.00016.46
7.4.290.0000.00716.57
7.4.280.0030.00316.36
7.4.270.0030.00316.42
7.4.260.0070.00016.52
7.4.250.0000.00816.41
7.4.240.0050.00216.50
7.4.230.0000.00716.36
7.4.220.0030.01516.51
7.4.210.0080.00916.46
7.4.200.0000.00816.36
7.4.190.0040.00416.61
7.4.160.0110.00416.56
7.4.150.0150.00317.40
7.4.140.0120.00617.86
7.4.130.0050.01316.62
7.4.120.0090.00816.52
7.4.110.0160.00016.47
7.4.100.0090.01116.48
7.4.90.0130.01016.50
7.4.80.0070.01019.39
7.4.70.0070.01116.39
7.4.60.0090.00916.39
7.4.50.0040.00416.43
7.4.40.0000.01422.77
7.4.30.0090.00616.49
7.3.330.0030.00313.20
7.3.320.0000.00513.22
7.3.310.0070.00016.13
7.3.300.0060.00016.30
7.3.290.0130.00316.22
7.3.280.0070.00916.31
7.3.270.0090.00617.40
7.3.260.0110.00716.27
7.3.250.0100.00916.33
7.3.240.0190.00316.25
7.3.230.0040.01316.39
7.3.210.0090.00916.59
7.3.200.0110.00616.36
7.3.190.0160.00316.24
7.3.180.0120.00616.24
7.3.170.0160.00016.39
7.3.160.0040.01216.46
7.2.330.0100.00716.61
7.2.320.0120.00916.52
7.2.310.0060.00916.30
7.2.300.0000.01716.21
7.2.290.0060.01016.65
5.5.110.0070.07720.15
5.5.100.0070.05320.02
5.5.90.0030.07720.03
5.5.80.0100.04720.16
5.5.70.0100.04320.06
5.5.60.0000.05720.09
5.5.50.0100.06720.09
5.5.40.0070.08020.03
5.5.30.0130.07020.08
5.5.20.0070.07319.99
5.5.10.0130.07319.98
5.5.00.0100.07319.96
5.4.270.0130.03319.21
5.4.260.0070.05019.02
5.4.250.0070.04319.13
5.4.240.0030.04318.89
5.4.230.0070.05319.17
5.4.220.0070.07019.11
5.4.210.0070.07318.87
5.4.200.0130.06719.02
5.4.190.0130.06319.11
5.4.180.0070.08019.04
5.4.170.0170.07019.22
5.4.160.0130.07018.85
5.4.150.0030.08319.20
5.4.140.0030.06716.34
5.4.130.0030.05716.18
5.4.120.0070.05316.41
5.4.110.0000.07016.43
5.4.100.0100.07316.39
5.4.90.0100.06716.47
5.4.80.0030.03716.34
5.4.70.0100.05316.49
5.4.60.0030.05016.25
5.4.50.0070.07016.36
5.4.40.0030.07316.45
5.4.30.0100.03716.39
5.4.20.0030.07316.36
5.4.10.0030.04016.29
5.4.00.0030.04715.94
5.3.280.0000.04714.57
5.3.270.0070.07714.58
5.3.260.0000.08014.59
5.3.250.0070.07714.46
5.3.240.0070.07714.55
5.3.230.0100.04014.60
5.3.220.0070.04014.39
5.3.210.0070.03714.55
5.3.200.0070.07714.43
5.3.190.0100.07014.38
5.3.180.0030.04014.56
5.3.170.0130.06314.50
5.3.160.0030.04014.52
5.3.150.0130.06314.50
5.3.140.0070.04014.55
5.3.130.0000.06014.53
5.3.120.0100.06714.55
5.3.110.0100.07014.53
5.3.100.0070.05713.89
5.3.90.0170.05313.96
5.3.80.0100.04313.99
5.3.70.0000.05314.01
5.3.60.0070.06713.99
5.3.50.0100.04313.91
5.3.40.0130.05013.80
5.3.30.0100.07313.89
5.3.20.0100.05013.54
5.3.10.0130.06313.51
5.3.00.0070.06313.63
5.2.170.0100.06011.67
5.2.160.0000.06711.67
5.2.150.0030.06311.67
5.2.140.0000.05711.67
5.2.130.0030.05311.67
5.2.120.0030.04711.67
5.2.110.0100.04011.67
5.2.100.0070.05711.67
5.2.90.0230.04011.67
5.2.80.0070.05711.67
5.2.70.0030.06711.67
5.2.60.0130.05711.67
5.2.50.0070.06011.67
5.2.40.0070.05011.67
5.2.30.0070.05711.67
5.2.20.0100.05711.67
5.2.10.0070.05311.67
5.2.00.0070.05711.67
5.1.60.0070.04711.67
5.1.50.0030.03011.67
5.1.40.0000.05311.67
5.1.30.0000.05311.67
5.1.20.0170.03311.67
5.1.10.0070.05011.67
5.1.00.0070.05011.67
5.0.50.0030.03011.67
5.0.40.0070.04011.67
5.0.30.0000.05011.67
5.0.20.0070.03711.67
5.0.10.0030.02011.67
5.0.00.0000.04011.67
4.4.90.0070.02711.67
4.4.80.0030.02311.67
4.4.70.0070.02011.67
4.4.60.0000.03311.67
4.4.50.0070.03011.67
4.4.40.0030.04711.67
4.4.30.0070.03011.67
4.4.20.0070.03011.67
4.4.10.0030.03711.67
4.4.00.0000.05711.67
4.3.110.0000.02711.67
4.3.100.0000.01711.67
4.3.90.0030.01311.67
4.3.80.0000.05711.67
4.3.70.0030.03311.67
4.3.60.0070.02311.67
4.3.50.0000.02311.67
4.3.40.0030.02711.67
4.3.30.0000.03711.67
4.3.20.0070.03011.67
4.3.10.0000.03711.67
4.3.00.0000.04711.67

preferences:
68.59 ms | 401 KiB | 5 Q