3v4l.org

run code in 300+ PHP versions simultaneously
<?php $data = "[orderId] => 212939129; [orderId] => 212939129 [orderNumber] => INV10001 [salesTax] => 1.00 [amount] => 21.00 [terminal] => 5 [currency] => 1 [type] => purchase [avsStreet] => 123 Road [avsZip] => A1A 2B2 [customerCode] => CST1001 [cardId] => 18951828182 [cardHolderName] => John Smith [cardNumber] => 5454545454545454 [cardExpiry] => 1025 [cardCVV] => 100"; $butt = explode(" => ", $data); for ($i = 0; $i < count($butt); $i++) { if ($butt[$i] === "[salesTax]") { echo $butt[$i+1]; } echo $i; } ?>

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.0120.00616.50
8.3.50.0110.00416.36
8.3.40.0120.00318.54
8.3.30.0110.00418.76
8.3.20.0050.00221.89
8.3.10.0090.00021.54
8.3.00.0090.00019.79
8.2.180.0120.00916.50
8.2.170.0140.00722.96
8.2.160.0070.00720.39
8.2.150.0040.00425.66
8.2.140.0040.00424.66
8.2.130.0000.00720.41
8.2.120.0040.00426.35
8.2.110.0040.00722.25
8.2.100.0080.00418.03
8.2.90.0000.00817.72
8.2.80.0040.00418.04
8.2.70.0030.00518.05
8.2.60.0080.00017.95
8.2.50.0000.00918.10
8.2.40.0030.00520.65
8.2.30.0070.00019.32
8.2.20.0000.00818.17
8.2.10.0040.00418.19
8.2.00.0080.00018.07
8.1.280.0040.01125.92
8.1.270.0080.00020.63
8.1.260.0080.00026.35
8.1.250.0000.00728.09
8.1.240.0090.00022.47
8.1.230.0070.00320.88
8.1.220.0050.00317.76
8.1.210.0030.00518.77
8.1.200.0060.00317.35
8.1.190.0080.00017.32
8.1.180.0000.00818.10
8.1.170.0040.00420.17
8.1.160.0040.00418.89
8.1.150.0030.00320.14
8.1.140.0000.00819.55
8.1.130.0040.00418.86
8.1.120.0000.00717.48
8.1.110.0000.00717.39
8.1.100.0040.00417.45
8.1.90.0000.00817.43
8.1.80.0040.00417.50
8.1.70.0020.00517.45
8.1.60.0050.00217.58
8.1.50.0060.00317.42
8.1.40.0040.00417.55
8.1.30.0000.00717.62
8.1.20.0040.00417.62
8.1.10.0060.00317.54
8.1.00.0000.00717.50
8.0.300.0070.00021.47
8.0.290.0050.00316.75
8.0.280.0080.00018.53
8.0.270.0030.00317.28
8.0.260.0000.00718.80
8.0.250.0000.00716.95
8.0.240.0060.00316.99
8.0.230.0000.00716.92
8.0.220.0090.00016.73
8.0.210.0040.00416.79
8.0.200.0000.00816.84
8.0.190.0060.00316.89
8.0.180.0040.00416.82
8.0.170.0040.00416.93
8.0.160.0000.00716.85
8.0.150.0000.00716.72
8.0.140.0000.00816.75
8.0.130.0030.00313.36
8.0.120.0000.00716.86
8.0.110.0050.00216.88
8.0.100.0070.00016.72
8.0.90.0030.00316.84
8.0.80.0040.01116.89
8.0.70.0050.00316.69
8.0.60.0040.00416.85
8.0.50.0040.00316.79
8.0.30.0080.00917.20
8.0.20.0110.01117.40
8.0.10.0070.00016.89
8.0.00.0090.00916.61
7.4.330.0020.00215.55
7.4.320.0030.00316.59
7.4.300.0000.00716.51
7.4.290.0000.00716.50
7.4.280.0050.00216.41
7.4.270.0050.00216.58
7.4.260.0050.00516.39
7.4.250.0000.00716.61
7.4.240.0000.00716.65
7.4.230.0070.00016.70
7.4.220.0090.00916.50
7.4.210.0100.01016.61
7.4.200.0040.00416.71
7.4.160.0110.00716.56
7.4.150.0120.00617.40
7.4.140.0120.01317.86
7.4.130.0120.00616.64
7.4.120.0090.01416.62
7.4.110.0090.00916.52
7.4.100.0060.01016.66
7.4.90.0060.01016.46
7.4.80.0130.00319.39
7.4.70.0040.01216.48
7.4.60.0030.01316.41
7.4.50.0110.00716.62
7.4.40.0070.01016.53
7.4.30.0210.02616.58
7.4.00.0040.01115.02
7.3.330.0030.00313.03
7.3.320.0050.00013.12
7.3.310.0070.00016.21
7.3.300.0000.00716.29
7.3.290.0070.00716.26
7.3.280.0060.01216.27
7.3.270.0060.01117.40
7.3.260.0110.00816.41
7.3.250.0070.01516.34
7.3.240.0120.00816.50
7.3.230.0110.00716.56
7.3.210.0140.00516.56
7.3.200.0140.00716.55
7.3.190.0090.01316.48
7.3.180.0060.01016.39
7.3.170.0060.00916.32
7.3.160.0090.00916.27
7.2.330.0030.01316.53
7.2.320.0110.00616.44
7.2.310.0040.01816.85
7.2.300.0150.00316.83
7.2.290.0000.01616.80
7.2.00.0060.00619.22
7.1.100.0060.00918.17
7.1.70.0080.00417.19
7.1.60.0670.01033.06
7.1.50.0670.01032.81
7.1.40.0630.01332.66
7.1.30.0830.01032.46
7.1.20.0670.01332.64
7.1.10.0800.01315.01
7.1.00.1270.01014.91
7.0.200.0630.01315.01
7.0.190.0730.00714.72
7.0.180.0530.01014.38
7.0.170.0800.00314.52
7.0.160.0870.01014.42
7.0.150.0570.01314.66
7.0.140.0600.00714.58
7.0.130.0700.00314.63
7.0.120.0630.00714.73
7.0.110.0030.01014.39
7.0.100.0630.01714.44
7.0.90.0030.01014.47
7.0.80.0030.01014.42
7.0.70.0300.01014.59
7.0.60.0300.01314.38
7.0.50.0730.01014.58
7.0.40.0870.01014.90
7.0.30.0000.01314.64
7.0.20.0070.00714.70
7.0.10.0270.00314.50
7.0.00.0100.01014.55

preferences:
54.51 ms | 400 KiB | 5 Q