3v4l.org

run code in 300+ PHP versions simultaneously
<?php $text = " 4535903705830785|Expirymonth|Expiryyear|CVV|DOB|SSN|FirstName|LastName|Address|ZipCode|City|State|NumPhone|Email| 4535903705830785|Expirymonth|Expiryyear|CVV|DOB|SSN|FirstName|LastName|Address|ZipCode|City|State|NumPhone|Email| "; while(!empty($text)){ $bin = substr($text,0,strpos($text,"|")); $text = substr($text,strlen($bin)+1,strlen($text)); $short_bin = substr($bin,0,6); var_dump($bin); var_dump($short_bin); $exp_month = substr($text,0,strpos($text,"|")); $text = substr($text,strlen($exp_month)+1,strlen($text)); $exp_year = substr($text,0,strpos($text,"|")); $text = substr($text,strlen($exp_year)+1,strlen($text)); $cvv = substr($text,0,strpos($text,"|")); $text = substr($text,strlen($cvv)+1,strlen($text)); $dob = substr($text, 0, strpos($text, "|")); $text = substr($text, strlen($dob) + 1, strlen($text)); $ssn = substr($text, 0, strpos($text, "|")); $text = substr($text, strlen($ssn) + 1, strlen($text)); $firstname = substr($text,0,strpos($text,"|")); $text = substr($text,strlen($firstname)+1,strlen($text)); $lastname = substr($text,0,strpos($text,"|")); $text = substr($text,strlen($lastname)+1,strlen($text)); $address = substr($text,0,strpos($text,"|")); $text = substr($text,strlen($address)+1,strlen($text)); $zip_code = substr($text,0,strpos($text,"|")); $text = substr($text,strlen($zip_code)+1,strlen($text)); $city = substr($text,0,strpos($text,"|")); $text = substr($text,strlen($city)+1,strlen($text)); $state = substr($text,0,strpos($text,"|")); $text = substr($text,strlen($state)+1,strlen($text)); $phone = substr($text,0,strpos($text,"|")); $text = substr($text,strlen($phone)+1,strlen($text)); $email = substr($text,0,strpos($text,"|")); $text = substr($text,strlen($email)+1,strlen($text)); }

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.4.140.0140.00817.61
8.4.130.0120.01017.67
8.4.120.0120.00820.60
8.4.110.0070.00422.64
8.4.100.0100.01019.05
8.4.90.0050.00318.73
8.4.80.0100.00818.59
8.4.70.0150.00517.75
8.4.60.0080.01019.13
8.4.50.0060.00218.66
8.4.40.0030.00719.14
8.4.30.0030.00520.60
8.4.20.0070.01419.69
8.4.10.0030.00622.17
8.3.260.0080.00516.63
8.3.250.0070.01120.63
8.3.240.0130.00517.29
8.3.230.0130.00616.63
8.3.220.0030.00418.95
8.3.210.0110.00416.64
8.3.200.0030.00616.66
8.3.190.0130.00617.12
8.3.180.0090.00917.35
8.3.170.0110.00720.83
8.3.160.0070.01417.28
8.3.150.0090.00017.50
8.3.140.0140.00016.82
8.3.130.0100.01016.61
8.3.120.0050.00518.91
8.3.110.0090.00616.78
8.3.100.0040.00416.91
8.3.90.0120.00626.77
8.3.80.0060.00316.50
8.3.70.0100.00716.58
8.3.60.0070.01116.63
8.3.50.0040.01119.78
8.3.40.0090.00918.75
8.3.30.0120.00319.30
8.3.20.0000.00724.18
8.3.10.0000.00824.66
8.3.00.0040.00426.16
8.2.290.0060.00920.36
8.2.280.0090.01018.19
8.2.270.0060.01316.61
8.2.260.0060.01218.90
8.2.250.0040.00418.37
8.2.240.0150.00016.90
8.2.230.0160.00020.94
8.2.220.0040.00424.06
8.2.210.0150.00426.77
8.2.200.0030.00618.16
8.2.190.0130.00318.18
8.2.180.0090.00625.92
8.2.170.0040.01118.69
8.2.160.0130.00722.96
8.2.150.0040.00425.66
8.2.140.0040.00424.66
8.2.130.0050.00326.16
8.2.120.0040.00426.16
8.2.110.0030.00619.45
8.2.100.0090.00317.78
8.2.90.0040.00417.63
8.2.80.0060.00318.66
8.2.70.0040.00417.50
8.2.60.0000.00817.63
8.2.50.0000.00917.98
8.2.40.0060.00317.91
8.2.30.0090.00018.19
8.2.20.0040.00420.50
8.2.10.0000.00818.24
8.2.00.0070.00319.20
8.1.330.0110.00722.07
8.1.320.0120.00816.32
8.1.310.0000.00816.88
8.1.300.0030.00618.56
8.1.290.0030.00630.84
8.1.280.0150.00625.92
8.1.270.0050.00323.99
8.1.260.0080.00026.35
8.1.250.0140.00028.09
8.1.240.0100.00023.76
8.1.230.0090.00320.90
8.1.220.0000.00818.60
8.1.210.0000.00818.77
8.1.200.0040.00417.48
8.1.190.0000.00817.35
8.1.180.0000.00918.10
8.1.170.0000.00917.64
8.1.160.0000.00818.86
8.1.150.0000.00818.75
8.1.140.0040.00417.54
8.1.130.0000.00718.88
8.1.120.0000.00717.59
8.1.110.0100.00017.39
8.1.100.0080.00017.50
8.1.90.0040.00417.39
8.1.80.0070.00017.57
8.1.70.0070.00017.43
8.1.60.0080.00017.66
8.1.50.0170.00617.59
8.1.40.0130.01017.64
8.1.30.0180.00617.70
8.1.20.0230.00017.52
8.1.10.0210.00317.60
8.1.00.0070.00517.38
8.0.300.0090.00018.77
8.0.290.0000.00816.75
8.0.280.0040.00418.43
8.0.270.0000.00716.79
8.0.260.0080.00318.55
8.0.250.0050.00616.89
8.0.240.0030.00616.91
8.0.230.0070.00016.92
8.0.220.0000.00817.00
8.0.210.0000.00816.85
8.0.200.0000.00617.05
8.0.190.0030.00516.93
8.0.180.0130.00616.89
8.0.170.0090.00917.04
8.0.160.0160.00316.99
8.0.150.0140.00516.86
8.0.140.0130.00316.80
8.0.130.0110.00516.84
8.0.120.0140.00516.84
8.0.110.0070.01116.91
8.0.100.0150.00416.89
8.0.90.0180.00016.86
8.0.80.0110.00516.79
8.0.70.0140.00216.83
8.0.60.0120.00416.79
8.0.50.0100.00516.89
8.0.30.0130.00616.91
8.0.20.0170.00316.89
8.0.10.0140.00017.12
7.4.330.0050.00015.55
7.4.320.0060.00016.55
7.4.300.0030.00616.65
7.4.290.0120.00916.64
7.4.280.0130.00816.46
7.4.270.0180.00416.56
7.4.260.0120.00816.55
7.4.250.0040.00716.53
7.4.240.0070.00716.36
7.4.230.0080.00316.59
7.4.220.0050.00816.64
7.4.210.0050.00516.57
7.4.200.0130.00416.55
7.4.190.0100.00816.51
7.4.180.0160.00316.44
7.4.160.0080.00816.58
7.4.150.0110.00616.47
7.4.140.0110.00616.44
7.4.130.0140.00516.44
7.4.120.0140.00516.44
7.4.110.0160.00316.45
7.4.100.0130.00516.42
7.4.90.0170.00216.43
7.4.80.0150.00316.43
7.4.70.0150.00316.36
7.4.60.0130.00716.45
7.4.50.0120.00616.42
7.4.40.0130.00416.25
7.4.30.0150.00316.45
7.4.20.0100.00716.48
7.4.10.0110.00516.42
7.4.00.0060.00316.50

preferences:
35.82 ms | 403 KiB | 5 Q