3v4l.org

run code in 300+ PHP versions simultaneously
<?php $strings = [ '"test"', 'test', '\'te\'st"\'', '\'test\'', '\'"test"\'', '\'"te"st"\'', 'This is a test"""""".', 'test\'\'\'\'\'""""""""', 'test\'\'\'\'\'""""""""', '\'\'\'\'"""\'\'\'test\'\'"""\'\'\'', '\'\'\'\'\'""""\'\'' ]; foreach ($strings as $string) { echo trim($string, "'\"").PHP_EOL; }

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.5.10.0110.00618.21
8.5.00.0150.01319.74
8.4.160.0120.00920.47
8.4.150.0030.00014.05
8.4.140.0130.00817.61
8.4.130.0140.00617.78
8.4.120.0130.00720.63
8.4.110.0130.00822.57
8.4.100.0140.00717.58
8.4.90.0060.00318.67
8.4.80.0130.00917.62
8.4.70.0080.00317.49
8.4.60.0070.01018.45
8.4.50.0080.01117.77
8.4.40.0060.01017.91
8.4.30.0060.01217.72
8.4.20.0060.00920.56
8.4.10.0130.00617.59
8.3.280.0120.01018.24
8.3.270.0130.00716.67
8.3.260.0110.00816.75
8.3.250.0100.00918.91
8.3.240.0080.00716.81
8.3.230.0070.01216.74
8.3.220.0040.00416.97
8.3.210.0100.00916.51
8.3.200.0040.00516.88
8.3.190.0050.00317.02
8.3.180.0010.00618.33
8.3.170.0080.00020.65
8.3.160.0070.01018.42
8.3.150.0120.00316.54
8.3.140.0130.00619.14
8.3.130.0060.00318.25
8.3.120.0000.00920.71
8.3.110.0040.00420.94
8.3.100.0060.00324.06
8.3.90.0050.00326.77
8.3.80.0070.00318.18
8.3.70.0160.00416.38
8.3.60.0110.00718.31
8.3.50.0090.00817.43
8.3.40.0090.00618.49
8.3.30.0080.00818.68
8.3.20.0080.00018.78
8.3.10.0040.00423.48
8.3.00.0080.00019.62
8.2.290.0090.00920.18
8.2.280.0040.00518.24
8.2.270.0120.00620.18
8.2.260.0140.00416.60
8.2.250.0080.00018.50
8.2.240.0030.00616.93
8.2.230.0090.00022.58
8.2.220.0080.00437.54
8.2.210.0030.00926.77
8.2.200.0050.00516.50
8.2.190.0070.01016.58
8.2.180.0120.00320.14
8.2.170.0170.00322.96
8.2.160.0100.00322.12
8.2.150.0040.00424.18
8.2.140.0000.00824.66
8.2.130.0080.00021.12
8.2.120.0040.00426.35
8.2.110.0090.00021.03
8.2.100.0000.01317.78
8.2.90.0030.00519.15
8.2.80.0040.00417.97
8.2.70.0030.00617.50
8.2.60.0070.00018.01
8.2.50.0080.00318.07
8.2.40.0040.00418.29
8.2.30.0000.00718.08
8.2.20.0040.00418.07
8.2.10.0060.00317.98
8.2.00.0040.00418.24
8.1.330.0100.00821.92
8.1.320.0100.00915.96
8.1.310.0020.00518.46
8.1.300.0040.00416.22
8.1.290.0000.00930.84
8.1.280.0090.00625.92
8.1.270.0000.00921.95
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0100.00020.85
8.1.230.0070.00417.82
8.1.220.0000.00817.78
8.1.210.0090.00018.77
8.1.200.0030.00617.36
8.1.190.0040.00417.13
8.1.180.0000.00818.10
8.1.170.0080.00018.58
8.1.160.0030.00618.93
8.1.150.0030.00320.37
8.1.140.0080.00017.70
8.1.130.0030.00318.97
8.1.120.0030.00617.48
8.1.110.0000.00717.42
8.1.100.0040.00417.45
8.1.90.0050.00517.41
8.1.80.0030.00617.36
8.1.70.0030.00317.52
8.1.60.0060.00317.57
8.1.50.0050.00317.57
8.1.40.0030.00617.47
8.1.30.0090.00017.54
8.1.20.0060.00317.61
8.1.10.0050.00217.45
8.1.00.0030.00517.45
8.0.300.0070.00018.77
8.0.290.0050.00316.59
8.0.280.0000.00718.44
8.0.270.0000.00817.26
8.0.260.0000.00816.87
8.0.250.0000.00717.03
8.0.240.0000.00816.96
8.0.230.0040.00416.95
8.0.220.0030.00316.83
8.0.210.0030.00316.87
8.0.200.0050.00216.99
8.0.190.0030.00316.85
8.0.180.0000.00716.93
8.0.170.0030.00616.93
8.0.160.0070.00016.93
8.0.150.0040.00416.81
8.0.140.0070.00016.88
8.0.130.0000.00613.31
8.0.120.0040.00416.84
8.0.110.0000.00816.88
8.0.100.0000.00716.95
8.0.90.0040.00416.78
8.0.80.0060.00916.86
8.0.70.0000.00716.84
8.0.60.0080.00016.87
8.0.50.0040.00416.96
8.0.30.0130.00617.23
8.0.20.0100.01117.40
8.0.10.0040.00417.13
8.0.00.0080.01116.74
7.4.330.0020.00215.55
7.4.320.0050.00316.59
7.4.300.0030.00316.55
7.4.290.0070.00316.50
7.4.280.0070.00016.61
7.4.270.0000.00716.61
7.4.260.0070.00016.44
7.4.250.0040.00416.45
7.4.240.0050.00316.56
7.4.230.0000.00716.63
7.4.220.0000.00716.42
7.4.210.0110.00816.53
7.4.200.0070.00016.43
7.4.160.0140.00616.48
7.4.150.0140.00317.40
7.4.140.0080.01017.86
7.4.130.0120.00616.66
7.4.120.0130.00616.48
7.4.110.0120.00616.53
7.4.100.0170.00316.36
7.4.90.0030.01316.39
7.4.80.0100.01319.39
7.4.70.0130.01016.30
7.4.60.0120.00316.47
7.4.50.0080.00816.52
7.4.40.0000.01616.55
7.4.00.0130.00315.07
7.3.330.0000.00512.99
7.3.320.0000.00613.09
7.3.310.0030.00316.11
7.3.300.0040.00416.21
7.3.290.0110.00816.26
7.3.280.0100.01016.28
7.3.270.0080.01217.40
7.3.260.0090.01116.40
7.3.250.0100.00616.39
7.3.240.0090.01116.46
7.3.230.0090.00916.41
7.3.210.0060.01016.21
7.3.200.0030.01316.47
7.3.190.0060.01016.50
7.3.180.0120.01116.55
7.3.170.0160.00616.27
7.3.160.0150.00016.26
7.3.120.0070.01115.00
7.3.110.0140.00314.66
7.3.100.0000.01714.73
7.3.90.0000.01214.84
7.3.80.0140.00314.55
7.3.70.0110.00414.80
7.3.60.0000.01014.68
7.3.50.0060.00614.80
7.3.40.0040.00414.50
7.3.30.0000.01614.78
7.3.20.0060.01216.42
7.3.10.0090.00916.65
7.3.00.0070.01016.76
7.2.330.0100.00616.39
7.2.320.0060.01116.51
7.2.310.0090.00616.61
7.2.300.0070.01116.61
7.2.290.0060.01316.50
7.2.250.0110.00715.10
7.2.240.0030.01714.95
7.2.230.0030.01614.84
7.2.220.0150.00415.08
7.2.210.0030.01214.81
7.2.200.0120.00314.70
7.2.190.0070.01014.97
7.2.180.0060.00915.07
7.2.170.0030.00715.05
7.2.60.0070.00716.81
7.2.20.0190.00617.96
7.2.10.0160.01617.92
7.2.00.0130.01318.04
7.1.330.0070.00715.64
7.1.320.0070.00315.71
7.1.310.0110.00315.54
7.1.300.0070.00715.68
7.1.290.0000.00915.92
7.1.280.0030.00715.81
7.1.270.0120.00615.74
7.1.260.0030.01415.83
7.1.200.0040.00815.52
7.1.140.0180.01416.82
7.1.130.0230.01516.46
7.1.120.0090.01316.58
7.1.110.0180.00815.80
7.1.100.0120.00916.11
7.1.90.0140.01116.03
7.1.80.0120.00916.45
7.1.70.0160.00615.20
7.1.60.0370.01333.27
7.1.50.0380.01332.68
7.1.40.0250.02232.57
7.1.30.0280.01132.70
7.1.20.0250.01132.61
7.1.10.0080.01214.89
7.1.00.0170.00614.77

preferences:
35.44 ms | 403 KiB | 5 Q