3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace foo; var_dump(strlen('x')); if (true) { function strlen($x) { return 42; } } var_dump(strlen('x'));

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.0120.01017.34
8.4.130.0110.01017.88
8.4.120.0110.00920.51
8.4.110.0130.00722.58
8.4.100.0140.00717.66
8.4.90.0100.00918.43
8.4.80.0140.00619.58
8.4.70.0110.00517.97
8.4.60.0110.00718.50
8.4.50.0090.01122.16
8.4.40.0000.00818.47
8.4.30.0100.00318.96
8.4.20.0060.01317.87
8.4.10.0060.00323.42
8.3.270.0090.00916.73
8.3.260.0150.00516.57
8.3.250.0050.00218.97
8.3.240.0150.00416.35
8.3.230.0130.00516.80
8.3.220.0030.00417.10
8.3.210.0050.00216.57
8.3.200.0060.00316.77
8.3.190.0120.00717.13
8.3.180.0030.00516.64
8.3.170.0070.00719.00
8.3.160.0130.00720.23
8.3.150.0110.00716.92
8.3.140.0090.00617.21
8.3.130.0030.00618.40
8.3.120.0030.00620.77
8.3.110.0050.00316.66
8.3.100.0030.00516.72
8.3.90.0060.01226.77
8.3.80.0060.00317.97
8.3.70.0270.00316.60
8.3.60.0080.00818.30
8.3.50.0140.00716.57
8.3.40.0040.01121.82
8.3.30.0070.01018.72
8.3.20.0060.00324.18
8.3.10.0080.00024.66
8.3.00.0040.00426.16
8.2.290.0100.00920.19
8.2.280.0090.00918.15
8.2.270.0110.00717.22
8.2.260.0040.01420.58
8.2.250.0070.00716.50
8.2.240.0060.00317.14
8.2.230.0080.00020.94
8.2.220.0040.00424.06
8.2.210.0100.01026.77
8.2.200.0060.00316.50
8.2.190.0110.00416.58
8.2.180.0180.00018.42
8.2.170.0100.00318.88
8.2.160.0030.01222.96
8.2.150.0040.00425.66
8.2.140.0030.00624.66
8.2.130.0080.00026.16
8.2.120.0040.00419.65
8.2.110.0090.00019.32
8.2.100.0110.00317.91
8.2.90.0030.00518.88
8.2.80.0040.00417.97
8.2.70.0050.00517.63
8.2.60.0020.00517.90
8.2.50.0030.00618.10
8.2.40.0170.00319.05
8.2.30.0090.00918.10
8.2.20.0130.00418.10
8.2.10.0110.00618.10
8.2.00.0080.01218.10
8.1.330.0120.00320.40
8.1.320.0130.00615.78
8.1.310.0080.00016.61
8.1.300.0050.00516.01
8.1.290.0030.00630.84
8.1.280.0130.01025.92
8.1.270.0080.00024.66
8.1.260.0050.00326.35
8.1.250.0040.00428.09
8.1.240.0030.00622.32
8.1.230.0040.00817.77
8.1.220.0000.00917.74
8.1.210.0060.00318.77
8.1.200.0060.00317.25
8.1.190.0050.00517.11
8.1.180.0170.00018.10
8.1.170.0140.00218.10
8.1.160.0140.00318.10
8.1.150.0120.00618.10
8.1.140.0040.01318.10
8.1.130.0120.00618.10
8.1.120.0130.00318.10
8.1.110.0140.00418.10
8.1.100.0110.00618.10
8.1.90.0150.00318.10
8.1.80.0090.00818.10
8.1.70.0120.00518.10
8.1.60.0130.00518.10
8.1.50.0150.00318.10
8.1.40.0100.00718.10
8.1.30.0120.00818.10
8.1.20.0160.00318.10
8.1.10.0130.00718.67
8.1.00.0150.00318.10
8.0.300.0060.00318.77
8.0.290.0000.00816.63
8.0.280.0170.00018.10
8.0.270.0120.00418.10
8.0.260.0130.00518.10
8.0.250.0120.00618.10
8.0.240.0070.01018.10
8.0.230.0120.00618.10
8.0.220.0070.00718.10
8.0.210.0060.01218.10
8.0.200.0110.00518.10
8.0.190.0140.00318.10
8.0.180.0120.00418.10
8.0.170.0150.00018.10
8.0.160.0130.00418.10
8.0.150.0150.00418.10
8.0.140.0070.01118.10
8.0.130.0160.00018.10
8.0.120.0110.00618.10
8.0.110.0090.00618.40
8.0.100.0160.00018.10
8.0.90.0100.00618.10
8.0.80.0120.00618.10
8.0.70.0110.00518.10
8.0.60.0180.00018.10
8.0.50.0000.01618.10
8.0.30.0150.00318.10
8.0.20.0120.00418.10
8.0.10.0140.00218.10

preferences:
27.67 ms | 403 KiB | 5 Q