3v4l.org

run code in 300+ PHP versions simultaneously
<?php $myString = '10:0{ "name":"John", "age":30, "car":null }24:0'; echo trim($myString, '0123456789:');

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.0130.00817.45
8.4.130.0060.00517.84
8.4.120.0100.01020.42
8.4.110.0140.00618.70
8.4.100.0120.00918.53
8.4.90.0120.00918.77
8.4.80.0030.00518.62
8.4.70.0030.00517.91
8.4.60.0090.01118.92
8.4.50.0040.00420.59
8.4.40.0130.00317.51
8.4.30.0100.01019.11
8.4.20.0100.01019.52
8.4.10.0030.00720.65
8.3.270.0120.00916.48
8.3.260.0110.00816.57
8.3.250.0100.00918.52
8.3.240.0130.00516.54
8.3.230.0160.00316.47
8.3.220.0090.00919.04
8.3.210.0110.00816.45
8.3.200.0060.00616.16
8.3.190.0110.00917.01
8.3.180.0030.00516.73
8.3.170.0120.00618.84
8.3.160.0060.01216.93
8.3.150.0000.00820.84
8.3.140.0000.00716.65
8.3.130.0040.00418.40
8.3.120.0040.00420.61
8.3.110.0040.00420.94
8.3.100.0080.00024.06
8.3.90.0050.00226.77
8.3.80.0040.00418.31
8.3.70.0070.01116.63
8.3.60.0070.01118.43
8.3.50.0120.00518.21
8.3.40.0120.01218.64
8.3.30.0040.01118.62
8.3.20.0080.00018.85
8.3.10.0040.00421.65
8.3.00.0000.00819.56
8.2.290.0110.00720.60
8.2.280.0130.00618.45
8.2.270.0130.00617.05
8.2.260.0050.00318.80
8.2.250.0060.00318.25
8.2.240.0120.00318.92
8.2.230.0060.00322.58
8.2.220.0030.00637.54
8.2.210.0080.01226.77
8.2.200.0060.00316.63
8.2.190.0120.00316.58
8.2.180.0100.01016.32
8.2.170.0110.00422.96
8.2.160.0100.00318.91
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0040.00421.13
8.2.110.0030.00720.91
8.2.100.0120.00017.78
8.2.90.0000.00917.84
8.2.80.0040.00418.03
8.2.70.0100.00017.89
8.2.60.0050.00318.09
8.2.50.0050.00318.10
8.2.40.0040.00419.21
8.2.30.0040.00419.48
8.2.20.0040.00417.93
8.2.10.0000.00718.05
8.2.00.0070.00019.34
8.1.330.0090.00921.52
8.1.320.0110.00815.91
8.1.310.0000.00816.51
8.1.300.0000.00820.29
8.1.290.0030.00630.84
8.1.280.0080.01125.92
8.1.270.0050.00324.02
8.1.260.0000.00826.35
8.1.250.0060.00328.09
8.1.240.0070.00324.02
8.1.230.0080.00320.97
8.1.220.0030.00617.74
8.1.210.0000.00918.77
8.1.200.0060.00317.23
8.1.190.0030.00917.10
8.1.180.0060.00318.10
8.1.170.0060.00318.65
8.1.160.0040.00418.72
8.1.150.0030.00518.81
8.1.140.0000.00717.86
8.1.130.0000.00719.06
8.1.120.0030.00317.35
8.1.110.0030.00317.38
8.1.100.0000.00717.39
8.1.90.0040.00417.37
8.1.80.0000.00717.26
8.1.70.0030.00317.42
8.1.60.0000.01017.54
8.1.50.0080.00017.38
8.1.40.0030.00617.45
8.1.30.0050.00317.56
8.1.20.0060.00317.57
8.1.10.0000.00717.41
8.1.00.0000.00817.48
8.0.300.0040.00419.63
8.0.290.0040.00416.75
8.0.280.0070.00018.35
8.0.270.0070.00017.29
8.0.260.0000.00720.16
8.0.250.0080.00016.84
8.0.240.0050.00316.82
8.0.230.0000.00616.82
8.0.220.0000.01016.71
8.0.210.0000.00616.83
8.0.200.0080.00016.82
8.0.190.0040.00416.77
8.0.180.0020.00516.88
8.0.170.0050.00316.84
8.0.160.0040.00416.84
8.0.150.0040.00416.68
8.0.140.0000.00816.76
8.0.130.0050.00313.22
8.0.120.0000.01016.79
8.0.110.0050.00216.68
8.0.100.0040.00416.69
8.0.90.0020.00516.67
8.0.80.0130.00816.75
8.0.70.0070.00016.70
8.0.60.0050.00316.84
8.0.50.0050.00316.81
8.0.30.0090.01016.95
8.0.20.0150.00517.40
8.0.10.0030.00316.84
8.0.00.0110.00616.76
7.4.330.0030.00315.55
7.4.320.0000.00716.58
7.4.300.0070.00016.42
7.4.290.0040.00416.51
7.4.280.0040.00416.55
7.4.270.0070.00016.45
7.4.260.0000.00716.46
7.4.250.0050.00216.54
7.4.240.0080.00016.40
7.4.230.0040.00416.43
7.4.220.0040.00416.41
7.4.210.0070.00816.38
7.4.200.0000.00716.50
7.4.140.0130.00617.86
7.4.130.0150.00316.47
7.4.120.0090.01216.43
7.4.110.0130.00316.47
7.4.100.0100.01016.51
7.4.90.0070.01416.38
7.4.80.0090.00919.39
7.4.70.0030.01316.32
7.4.60.0040.01516.36
7.4.50.0070.01116.36
7.4.40.0070.01016.20
7.4.00.0080.00814.68
7.3.330.0000.00513.04
7.3.320.0030.00312.96
7.3.310.0070.00016.19
7.3.300.0000.00716.04
7.3.290.0000.00715.98
7.3.280.0090.00916.16
7.3.260.0130.00616.15
7.3.240.0060.01016.26
7.3.230.0100.00716.28
7.3.210.0060.01216.39
7.3.200.0030.01316.32
7.3.190.0060.01116.29
7.3.180.0080.00816.15
7.3.170.0090.01116.39
7.3.160.0060.01016.54
7.3.120.0110.00414.77
7.3.110.0060.00614.82
7.3.100.0090.00614.54
7.3.90.0140.00014.64
7.3.80.0070.00714.65
7.3.70.0030.00614.73
7.3.60.0090.00314.36
7.3.50.0030.00914.84
7.3.40.0060.01014.67
7.3.30.0100.00314.58
7.3.20.0000.01216.63
7.3.10.0070.00516.53
7.3.00.0060.00916.52
7.2.330.0040.01316.55
7.2.320.0060.01316.48
7.2.310.0030.01416.59
7.2.300.0090.00616.68
7.2.290.0100.01416.36
7.2.250.0060.01214.73
7.2.240.0070.01314.80
7.2.230.0100.00714.70
7.2.220.0110.00414.59
7.2.210.0060.00914.97
7.2.200.0060.00914.72
7.2.190.0030.00714.97
7.2.180.0000.01214.94
7.2.170.0000.01614.76
7.2.130.0070.00716.82
7.2.120.0000.01016.86
7.2.110.0030.01316.91
7.2.100.0100.00316.87
7.2.90.0070.00716.51
7.2.80.0060.00916.51
7.2.70.0060.00616.81
7.2.60.0070.00716.84
7.2.50.0030.01016.67
7.2.40.0800.01317.28
7.2.30.0680.00817.30
7.2.20.1040.00917.18
7.2.10.0670.01117.29
7.2.00.0660.00717.20
7.1.330.0070.00715.83
7.1.320.0000.01315.92
7.1.310.0000.01315.59
7.1.300.0100.00315.55
7.1.290.0070.00715.95
7.1.280.0000.01715.66
7.1.270.0060.00615.46
7.1.260.0100.00315.80
7.1.250.0000.01415.56
7.1.200.0060.00315.63
7.1.160.1210.01016.52
7.1.150.1140.01116.50
7.1.140.1760.01016.97
7.1.130.1500.00816.68
7.1.120.1210.00716.83
7.1.110.2080.00816.42
7.1.100.2350.00916.09
7.1.90.1210.01016.19
7.1.80.1630.01116.45
7.1.70.1870.00915.21
7.1.60.2160.01533.14
7.1.50.2580.01032.84
7.1.40.2520.01232.42
7.1.30.2690.01032.56
7.1.20.2850.01032.69
7.1.10.1940.00914.64
7.1.00.1900.00914.87

preferences:
31.38 ms | 403 KiB | 5 Q