3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = ['they "did" it', "some", "other", "elements"]; var_export( [ 'they "did" it' => stripos(json_encode($array), 'they "did" it') !== false, // should be true but isn't 'they \"did\" it' => stripos(json_encode($array), 'they \"did\" it') !== false // should be false but isn't ] );

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.00920.95
8.4.110.0060.00320.85
8.4.100.0120.00817.80
8.4.90.0140.00817.57
8.4.80.0140.00617.82
8.4.70.0140.00918.01
8.4.60.0110.01117.61
8.4.50.0090.01017.81
8.4.40.0100.01019.33
8.4.30.0120.00820.36
8.4.20.0070.00317.71
8.4.10.0100.01025.84
8.3.250.0130.00519.05
8.3.240.0050.00416.41
8.3.230.0070.00316.39
8.3.220.0060.00217.02
8.3.210.0090.00916.73
8.3.200.0110.00816.44
8.3.190.0090.00916.57
8.3.180.0110.00816.35
8.3.170.0070.01116.50
8.3.160.0030.00616.43
8.3.150.0070.01416.29
8.3.140.0090.00916.61
8.3.130.0050.00318.62
8.3.120.0100.00320.84
8.3.110.0100.01016.33
8.3.100.0120.00316.62
8.3.90.0080.00026.77
8.3.80.0030.01616.49
8.3.70.0110.00418.31
8.3.60.0160.00318.31
8.3.50.0090.01223.66
8.3.40.0070.01318.84
8.3.30.0070.00718.66
8.3.20.0040.00424.18
8.3.10.0040.00424.66
8.3.00.0040.00426.16
8.2.290.0080.00220.50
8.2.280.0050.00318.24
8.2.270.0030.01516.40
8.2.260.0060.01217.01
8.2.250.0110.00016.69
8.2.240.0090.00016.40
8.2.230.0060.00320.94
8.2.220.0030.00524.06
8.2.210.0040.01126.77
8.2.200.0070.00416.38
8.2.190.0110.00716.58
8.2.180.0150.00625.92
8.2.170.0120.00618.96
8.2.160.0140.00722.96
8.2.150.0050.00225.66
8.2.140.0080.00024.66
8.2.130.0050.00326.16
8.2.120.0000.00826.35
8.2.110.0060.00322.16
8.2.100.0120.00017.78
8.2.90.0030.00517.74
8.2.80.0030.00518.64
8.2.70.0040.00417.63
8.2.60.0000.00817.93
8.2.50.0030.00518.07
8.2.40.0040.00418.17
8.2.30.0030.00717.81
8.2.20.0040.00418.00
8.2.10.0050.00219.06
8.2.00.0040.00419.06
8.1.330.0110.00722.02
8.1.320.0110.00616.19
8.1.310.0000.00816.92
8.1.300.0060.00917.97
8.1.290.0030.00730.84
8.1.280.0120.00325.92
8.1.270.0080.00023.99
8.1.260.0030.00628.09
8.1.250.0060.00328.09
8.1.240.0000.00922.81
8.1.230.0070.00717.83
8.1.220.0080.00017.74
8.1.210.0080.00018.77
8.1.200.0030.00617.23
8.1.190.0050.00317.00
8.1.180.0080.00018.10
8.1.170.0030.00518.59
8.1.160.0040.00418.79
8.1.150.0030.00718.74
8.1.140.0040.00418.82
8.1.130.0070.00017.39
8.1.120.0040.00417.29
8.1.110.0000.00817.30
8.1.100.0000.00717.31
8.1.90.0070.00017.40
8.1.80.0060.00617.45
8.1.70.0030.00317.40
8.1.60.0080.00317.57
8.1.50.0040.00417.37
8.1.40.0040.00417.49
8.1.30.0080.00017.51
8.1.20.0000.00717.57
8.1.10.0040.00417.49
8.1.00.0100.00017.46
8.0.300.0040.00418.77
8.0.290.0000.00716.63
8.0.280.0000.00718.30
8.0.270.0070.00017.88
8.0.260.0040.00416.66
8.0.250.0000.00716.85
8.0.240.0000.00816.89
8.0.230.0030.00516.79
8.0.220.0030.00316.81
8.0.210.0000.00716.89
8.0.200.0000.00816.82
8.0.190.0080.00016.78
8.0.180.0000.00716.75
8.0.170.0030.00516.73
8.0.160.0040.00416.75
8.0.150.0000.00816.66
8.0.140.0040.00416.79
8.0.130.0030.00313.24
8.0.120.0050.00316.78
8.0.110.0000.00916.93
8.0.100.0070.00016.82
8.0.90.0040.00416.71
8.0.80.0090.01016.80
8.0.70.0000.00716.86
8.0.60.0050.00216.73
8.0.50.0050.00316.68
8.0.30.0070.01016.80
8.0.20.0090.00917.40
8.0.10.0200.01017.40
8.0.00.0260.00717.40
7.4.330.0050.00015.55
7.4.320.0030.00316.62
7.4.300.0000.00716.41
7.4.290.0040.00416.56
7.4.280.0030.00516.53
7.4.270.0070.00016.61
7.4.260.0000.00513.11
7.4.250.0040.00416.42
7.4.240.0070.00016.51
7.4.230.0040.00416.34
7.4.220.0040.00316.44
7.4.210.0090.00716.60
7.4.200.0070.00016.41
7.4.150.0100.00817.40
7.4.140.0150.00817.40
7.4.130.0170.00617.40
7.4.120.0110.00817.40
7.4.110.0170.00617.40
7.4.100.0090.00917.40
7.4.90.0130.00817.40
7.4.80.0000.02017.40
7.4.70.0140.00617.40
7.4.60.0180.00317.40
7.4.50.0080.01117.40
7.4.40.0180.00317.40
7.4.30.0140.00617.40
7.4.20.0180.00517.40
7.4.10.0100.01017.40
7.4.00.0120.00617.40
7.3.330.0030.00616.26
7.3.320.0030.00313.03
7.3.310.0030.00316.15
7.3.300.0060.00016.18
7.3.290.0130.00716.20
7.3.270.0100.00817.40
7.3.260.0200.01217.40
7.3.250.0120.00617.40
7.3.240.0160.00417.40
7.3.230.0130.00617.40
7.3.220.0110.00817.40
7.3.210.0060.01217.40
7.3.200.0130.00817.40
7.3.190.0100.01017.40
7.3.180.0070.01117.40
7.3.170.0150.00417.40
7.3.160.0180.00217.40
7.3.150.0120.00917.40
7.3.140.0060.01317.40
7.3.130.0000.01917.40
7.3.120.0110.00817.40
7.3.110.0120.00617.40
7.3.100.0140.00717.40
7.3.90.0090.00917.40
7.3.80.0130.00717.40
7.3.70.0150.00517.40
7.3.60.0150.00417.40
7.3.50.0070.01417.40
7.3.40.0170.00217.40
7.3.30.0130.01017.40
7.3.20.0440.01217.40
7.3.10.0170.00317.40
7.3.00.0190.00517.40
5.6.400.0100.00415.38

preferences:
29.5 ms | 403 KiB | 5 Q