3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str1 = 'Apple\'s OS and the "Microsoft OS", ----- any text with quotes & symbols ---- '; $str2 = 'Sony\'s Laptop and the "Toshiba\'s"'; $string = "".$str1.",".$str2.""; $result = explode(',',$string); print_r($result);

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.0110.01017.35
8.4.130.0140.00717.52
8.4.120.0090.01124.06
8.4.110.0150.00619.00
8.4.100.0120.00717.77
8.4.90.0070.00219.44
8.4.80.0020.00717.75
8.4.70.0110.00717.80
8.4.60.0100.01018.72
8.4.50.0120.00517.70
8.4.40.0130.01020.24
8.4.30.0080.01119.40
8.4.20.0060.00317.68
8.4.10.0030.00919.59
8.3.270.0120.00616.73
8.3.260.0080.01016.38
8.3.250.0100.00918.78
8.3.240.0110.00516.66
8.3.230.0080.01116.52
8.3.220.0060.00316.96
8.3.210.0060.00716.56
8.3.200.0060.00416.73
8.3.190.0090.00417.11
8.3.180.0090.00916.54
8.3.170.0100.00917.31
8.3.160.0180.00016.64
8.3.150.0080.01119.10
8.3.140.0080.00016.71
8.3.130.0080.00018.48
8.3.120.0040.00419.04
8.3.110.0060.00920.94
8.3.100.0090.00024.06
8.3.90.0080.00026.77
8.3.80.0000.00919.36
8.3.70.0080.00816.63
8.3.60.0120.00318.31
8.3.50.0070.01217.28
8.3.40.0060.00918.60
8.3.30.0070.01418.77
8.3.20.0000.00820.34
8.3.10.0170.00320.61
8.3.00.0050.00320.34
8.2.290.0110.00820.35
8.2.280.0060.00218.20
8.2.270.0120.00618.41
8.2.260.0040.00420.60
8.2.250.0040.00418.35
8.2.240.0070.01117.21
8.2.230.0060.00322.58
8.2.220.0070.00037.54
8.2.210.0040.00426.77
8.2.200.0090.00018.88
8.2.190.0110.00416.58
8.2.180.0110.00718.16
8.2.170.0080.00822.96
8.2.160.0070.00719.38
8.2.150.0000.00824.18
8.2.140.0060.00924.66
8.2.130.0000.00819.76
8.2.120.0090.00026.35
8.2.110.0070.00321.04
8.2.100.0000.01117.72
8.2.90.0030.00519.46
8.2.80.0050.00317.97
8.2.70.0000.00818.04
8.2.60.0040.00418.03
8.2.50.0000.00918.10
8.2.40.0000.00720.23
8.2.30.0020.00519.31
8.2.20.0020.00518.05
8.2.10.0040.00418.12
8.2.00.0040.00418.22
8.1.330.0070.01118.18
8.1.320.0100.00915.93
8.1.310.0090.00616.58
8.1.300.0090.00618.27
8.1.290.0070.00330.84
8.1.280.0120.00925.92
8.1.270.0000.00822.19
8.1.260.0120.00626.35
8.1.250.0030.00528.09
8.1.240.0170.00023.84
8.1.230.0060.00620.90
8.1.220.0040.00417.79
8.1.210.0090.00018.77
8.1.200.0090.00017.36
8.1.190.0050.00317.10
8.1.180.0000.00818.10
8.1.170.0080.00018.69
8.1.160.0080.00018.86
8.1.150.0040.00420.18
8.1.140.0030.00519.48
8.1.130.0020.00517.36
8.1.120.0030.00317.37
8.1.110.0000.00917.51
8.1.100.0030.00517.38
8.1.90.0040.00417.36
8.1.80.0020.00517.36
8.1.70.0000.00717.46
8.1.60.0070.00317.62
8.1.50.0040.00417.50
8.1.40.0030.00617.51
8.1.30.0050.00317.63
8.1.20.0040.00417.69
8.1.10.0040.00417.42
8.1.00.0000.00717.34
8.0.300.0070.00019.86
8.0.290.0090.00016.75
8.0.280.0000.00718.36
8.0.270.0030.00317.26
8.0.260.0000.00716.70
8.0.250.0000.00717.00
8.0.240.0000.00716.89
8.0.230.0070.00016.85
8.0.220.0000.00716.90
8.0.210.0040.00416.79
8.0.200.0030.00316.97
8.0.190.0030.00516.96
8.0.180.0000.00816.89
8.0.170.0030.00516.82
8.0.160.0080.00016.78
8.0.150.0030.00316.82
8.0.140.0000.00716.91
8.0.130.0000.00613.29
8.0.120.0030.00616.86
8.0.110.0000.00716.87
8.0.100.0040.00416.79
8.0.90.0080.00016.70
8.0.80.0060.01216.89
8.0.70.0000.00716.88
8.0.60.0040.00417.00
8.0.50.0040.00416.84
8.0.30.0100.00917.15
8.0.20.0140.01117.40
8.0.10.0040.00417.02
8.0.00.0120.00616.79
7.4.330.0000.00615.55
7.4.320.0000.00716.50
7.4.300.0070.00016.58
7.4.290.0030.00316.57
7.4.280.0030.00516.59
7.4.270.0060.00316.53
7.4.260.0000.00716.49
7.4.250.0000.00816.56
7.4.240.0050.00316.43
7.4.230.0030.00316.57
7.4.220.0070.01116.50
7.4.210.0140.00316.47
7.4.200.0040.00416.54
7.4.160.0110.00716.42
7.4.150.0090.00917.40
7.4.140.0090.00917.86
7.4.130.0090.00916.35
7.4.120.0090.01016.57
7.4.110.0140.00416.35
7.4.100.0100.01016.55
7.4.90.0130.01016.31
7.4.80.0070.01019.39
7.4.70.0070.01016.53
7.4.60.0100.00716.49
7.4.50.0030.01016.61
7.4.40.0110.00716.53
7.4.30.0120.00616.50
7.4.10.0000.01815.12
7.4.00.0080.00814.91
7.3.330.0000.00513.14
7.3.320.0000.00513.00
7.3.310.0000.00716.47
7.3.300.0040.00416.17
7.3.290.0090.00816.32
7.3.280.0090.00716.26
7.3.270.0080.00917.40
7.3.260.0080.00816.44
7.3.250.0090.00816.32
7.3.240.0080.01016.34
7.3.230.0130.00416.36
7.3.210.0110.00616.30
7.3.200.0070.01016.63
7.3.190.0080.00816.50
7.3.180.0080.00716.23
7.3.170.0150.00316.21
7.3.160.0090.00616.27
7.3.130.0070.01314.79
7.3.120.0060.01214.90
7.3.110.0100.00814.65
7.3.100.0070.00914.63
7.3.90.0070.00914.61
7.3.80.0030.00814.88
7.3.70.0100.00414.83
7.3.60.0040.00914.79
7.3.50.0060.00714.84
7.3.40.0080.00614.64
7.3.30.0030.00814.60
7.3.20.0070.00616.77
7.3.10.0070.00616.60
7.3.00.0050.00916.39
7.2.330.0040.02016.71
7.2.320.0150.00616.42
7.2.310.0030.01316.62
7.2.300.0060.01116.56
7.2.290.0030.01316.33
7.2.260.0090.00615.20
7.2.250.0060.01315.02
7.2.240.0080.01014.98
7.2.230.0050.01114.98
7.2.220.0050.00814.78
7.2.210.0050.00814.82
7.2.200.0070.00714.91
7.2.190.0080.00415.04
7.2.180.0100.00414.96
7.2.170.0050.01114.91
7.2.160.0000.01515.05
7.2.150.0040.00816.58
7.2.140.0000.01517.02
7.2.130.0170.00316.86
7.2.120.0100.01016.81
7.2.110.0070.00716.82
7.2.100.0070.01016.86
7.2.90.0060.00916.80
7.2.80.0100.00316.72
7.2.70.0060.00816.98
7.2.60.0060.00816.83
7.2.50.0030.01016.82
7.2.40.0040.01416.96
7.2.30.0070.00717.04
7.2.20.0000.01416.64
7.2.10.0080.00416.72
7.2.00.0060.00916.87
7.1.330.0100.00315.96
7.1.320.0040.00815.71
7.1.310.0030.01115.57
7.1.300.0070.00315.71
7.1.290.0020.01215.62
7.1.280.0060.00915.70
7.1.270.0050.00515.84
7.1.260.0040.00615.79
7.1.250.0080.00415.85
7.1.240.0080.00415.66
7.1.230.0070.00715.80
7.1.220.0070.00715.54
7.1.210.0000.00815.93
7.1.200.0070.00715.83
7.1.190.0030.01015.88
7.1.180.0030.00815.66
7.1.170.0100.00715.76
7.1.160.0070.00715.62
7.1.150.0100.00315.72
7.1.140.0090.00315.75
7.1.130.0060.00615.54
7.1.120.0030.00715.77
7.1.110.0030.00715.91
7.1.100.0040.00715.62
7.1.90.0030.01015.89
7.1.80.0040.00816.89
7.1.70.0090.00616.45
7.1.60.0050.01225.46
7.1.50.0140.00625.34
7.1.40.0170.00325.11
7.1.30.0090.00825.10
7.1.20.0130.00825.02
7.1.10.0080.00516.10
7.1.00.0000.01216.10
7.0.330.0120.00315.61
7.0.320.0100.00415.54
7.0.310.0070.00715.52
7.0.300.0100.00015.57
7.0.290.0040.00415.13
7.0.280.0070.00715.34
7.0.270.0030.01015.48
7.0.260.0050.00815.40
7.0.250.0070.00315.20
7.0.240.0040.00815.39
7.0.230.0030.01015.54
7.0.220.0120.00315.40
7.0.210.0030.00515.25
7.0.200.0070.00516.08
7.0.190.0070.00616.07
7.0.180.0040.00816.02
7.0.170.0070.00315.81
7.0.160.0060.00615.62
7.0.150.0080.00615.81
7.0.140.0010.01315.87
7.0.130.0020.01215.81
7.0.120.0050.00815.95
7.0.110.0040.00915.89
7.0.100.0070.00615.87
7.0.90.0050.00915.81
7.0.80.0070.00815.79
7.0.70.0020.01015.90
7.0.60.0050.00715.82
7.0.50.0070.00416.05
7.0.40.0030.01015.05
7.0.30.0040.00914.99
7.0.20.0080.00515.00
7.0.10.0030.00714.86
7.0.00.0050.00814.96
5.6.400.0100.00614.37
5.6.390.0100.00714.03
5.6.380.0140.00014.54
5.6.370.0070.00714.28
5.6.360.0100.00714.14
5.6.350.0110.00614.23
5.6.340.0090.00614.23
5.6.330.0000.01313.94
5.6.320.0070.00714.04
5.6.310.0030.00614.39
5.6.300.0110.00414.23
5.6.290.0000.00914.26
5.6.280.0030.00814.11
5.6.270.0030.01014.04
5.6.260.0040.01114.01
5.6.250.0070.00714.28
5.6.240.0040.01114.31
5.6.230.0030.01014.25
5.6.220.0000.01714.16
5.6.210.0070.00414.16
5.6.200.0080.00614.26
5.6.190.0110.00714.49
5.6.180.0060.00314.45
5.6.170.0030.00914.16
5.6.160.0070.00714.37
5.6.150.0000.01414.23
5.6.140.0090.00014.31
5.6.130.0030.01413.93
5.6.120.0040.00714.26
5.6.110.0030.00614.29
5.6.100.0100.00314.49
5.6.90.0090.00614.30
5.6.80.0080.00814.21
5.6.70.0040.01214.25
5.6.60.0060.00614.02
5.6.50.0040.00714.14
5.6.40.0110.00714.11
5.6.30.0100.00714.06
5.6.20.0070.00314.07
5.6.10.0070.00714.39
5.6.00.0070.00714.31

preferences:
114.19 ms | 403 KiB | 5 Q