3v4l.org

run code in 300+ PHP versions simultaneously
<?php $json = <<<JSON { "event_type": "IncomingCallEnd", "account_id": 55555, "did_num": "88001234567", "did": "7123456789", "call_id": "1588984514.9676405", "abon": "103", "billsec": "19", "secret": "4ff8rZbTZ0TllXL" } JSON; $jsonString = $json; $call = json_decode($jsonString); $call->did_num = substr_replace(trim($call->did_num),'7',0,1); print_r($call); print_r($call->did_num);

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.120.0110.00820.77
8.4.110.0090.00922.61
8.4.100.0130.00717.47
8.4.90.0130.00618.58
8.4.80.0100.01017.59
8.4.70.0130.00717.79
8.4.60.0120.00919.00
8.4.50.0140.00518.86
8.4.40.0090.00920.46
8.4.30.0110.00818.46
8.4.20.0140.00719.71
8.4.10.0000.01822.61
8.3.250.0050.00319.02
8.3.240.0120.00716.87
8.3.230.0050.00416.45
8.3.220.0100.00817.18
8.3.210.0090.00616.73
8.3.200.0060.00316.63
8.3.190.0100.00917.30
8.3.180.0110.00916.52
8.3.170.0130.00616.73
8.3.160.0140.00416.51
8.3.150.0090.00917.18
8.3.140.0080.00016.61
8.3.130.0120.00618.54
8.3.120.0100.00020.88
8.3.110.0000.01516.64
8.3.100.0040.00418.29
8.3.90.0090.00918.31
8.3.80.0060.00319.36
8.3.70.0070.01116.63
8.3.60.0070.00716.63
8.3.50.0080.00823.69
8.3.40.0090.00618.71
8.3.30.0030.01018.79
8.3.20.0040.00424.18
8.3.10.0080.00024.66
8.3.00.0040.00426.16
8.2.290.0100.00920.00
8.2.280.0040.00518.30
8.2.270.0150.00416.46
8.2.260.0080.00018.67
8.2.250.0040.00416.44
8.2.240.0090.00016.49
8.2.230.0040.00420.94
8.2.220.0080.00024.06
8.2.210.0040.01126.77
8.2.200.0080.00418.88
8.2.190.0070.00718.00
8.2.180.0100.01025.92
8.2.170.0150.00018.92
8.2.160.0140.00022.96
8.2.150.0070.00025.66
8.2.140.0040.00424.66
8.2.130.0000.00726.16
8.2.120.0070.00026.35
8.2.110.0030.00721.00
8.2.100.0070.00417.72
8.2.90.0080.00017.63
8.2.80.0030.00518.82
8.2.70.0060.00317.50
8.2.60.0090.00017.91
8.2.50.0040.00418.07
8.2.40.0000.00718.16
8.2.30.0000.00718.03
8.2.20.0040.00417.98
8.2.10.0040.00419.17
8.2.00.0040.00419.23
8.1.330.0040.00722.11
8.1.320.0080.01317.69
8.1.310.0070.00716.53
8.1.300.0070.01019.44
8.1.290.0060.00630.84
8.1.280.0140.00725.92
8.1.270.0050.00323.99
8.1.260.0040.00428.09
8.1.250.0080.00028.09
8.1.240.0040.00422.66
8.1.230.0080.00317.77
8.1.220.0040.00417.74
8.1.210.0090.00018.77
8.1.200.0000.00817.35
8.1.190.0030.00717.35
8.1.180.0030.00618.10
8.1.170.0040.00418.59
8.1.160.0000.00818.82
8.1.150.0040.00418.72
8.1.140.0030.00518.82
8.1.130.0000.00720.07
8.1.120.0020.00517.44
8.1.110.0000.00717.40
8.1.100.0030.00717.22
8.1.90.0000.00717.32
8.1.80.0040.00417.39
8.1.70.0040.00417.37
8.1.60.0040.00417.48
8.1.50.0000.00717.45
8.1.40.0040.00417.33
8.1.30.0090.00017.44
8.1.20.0030.00617.55
8.1.10.0050.00317.47
8.1.00.0000.00817.34
8.0.300.0000.00718.77
8.0.290.0000.00816.75
8.0.280.0000.00718.25
8.0.270.0030.00318.04
8.0.260.0000.00720.22
8.0.250.0000.00716.93
8.0.240.0000.00716.88
8.0.230.0070.00316.84
8.0.220.0070.00016.92
8.0.210.0080.00016.80
8.0.200.0030.00316.96
8.0.190.0070.00016.86
8.0.180.0050.00316.92
8.0.170.0080.00016.94
8.0.160.0030.00516.96
8.0.150.0070.00016.78
8.0.140.0040.00416.86
8.0.130.0000.00713.29
8.0.120.0030.00716.90
8.0.110.0000.00716.90
8.0.100.0000.00716.95
8.0.90.0060.00316.70
8.0.80.0050.01116.85
8.0.70.0000.00716.78
8.0.60.0040.00416.78
8.0.50.0000.00717.01
8.0.30.0060.00916.82
8.0.20.0050.01417.04
8.0.10.0070.00016.98
8.0.00.0120.00616.67
7.4.330.0030.00315.55
7.4.320.0020.00516.30
7.4.300.0070.00016.48
7.4.290.0030.00616.32
7.4.280.0040.00416.38
7.4.270.0000.00716.57
7.4.260.0030.00316.44
7.4.250.0000.00716.49
7.4.240.0070.00016.44
7.4.230.0030.00316.64
7.4.220.0040.00416.53
7.4.210.0060.00816.50
7.4.200.0040.00416.55
7.4.130.0130.00616.39
7.4.120.0070.01016.56
7.4.110.0140.00316.33
7.4.100.0120.00416.47
7.4.90.0130.00416.55
7.4.80.0120.01119.39
7.4.70.0030.01316.45
7.4.60.0070.01016.20
7.4.50.0070.01016.25
7.4.40.0100.00716.41
7.4.30.0130.01016.69
7.4.20.0070.01016.03
7.4.10.0130.00416.21
7.4.00.0090.00916.25
7.3.330.0070.00016.21
7.3.320.0030.00313.16
7.3.310.0000.00716.33
7.3.300.0000.00716.35
7.3.290.0070.00716.36
7.3.280.0040.01116.30
7.3.260.0100.01416.73
7.3.230.0000.01616.31
7.3.210.0140.00316.50
7.3.200.0150.00316.35
7.3.190.0130.00616.47
7.3.180.0150.00616.48
7.3.170.0060.01016.28
7.3.160.0090.01216.23
7.3.150.0150.00816.30
7.3.140.0070.01316.53
7.3.130.0120.00616.34
7.3.120.0060.01016.20
7.3.110.0060.01016.35
7.3.100.0030.01316.24
7.3.90.0130.00316.27
7.3.80.0140.00716.38
7.3.70.0110.00716.26
7.3.60.0080.00816.25
7.3.50.0060.01316.29
7.3.40.0040.01516.34
7.3.30.0060.01016.44
7.3.20.0070.01316.28
7.3.10.0140.00316.33
7.3.00.0090.00616.38
7.2.330.0090.00916.69
7.2.320.0070.01016.66
7.2.310.0170.00016.68
7.2.300.0110.00716.41
7.2.290.0110.01116.77
7.2.280.0110.00816.40
7.2.270.0080.00816.42
7.2.260.0090.00916.77
7.2.250.0090.00616.74
7.2.240.0130.00316.36
7.2.230.0070.01016.66
7.2.220.0070.01016.44
7.2.210.0060.01516.66
7.2.200.0100.00616.52
7.2.190.0080.00916.52
7.2.180.0110.00716.59
7.2.170.0100.01016.58
7.2.160.0030.01616.45
7.2.150.0110.00716.46
7.2.140.0130.00316.68
7.2.130.0040.01416.61
7.2.120.0030.01316.53
7.2.110.0120.00616.57
7.2.100.0070.01016.52
7.2.90.0090.00916.44
7.2.80.0090.01016.56
7.2.70.0090.00916.68
7.2.60.0100.01016.66
7.2.50.0030.01616.59
7.2.40.0060.01216.70
7.2.30.0160.00316.46
7.2.20.0120.00616.62
7.2.10.0070.01716.41
7.2.00.0150.00916.48

preferences:
119.95 ms | 403 KiB | 5 Q