3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace Test; class Object { public function __toString() { return 'object class'; } } $o = new \Test\Object(); echo $o;

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.00616.79
8.5.00.0100.01119.74
8.4.160.0110.01023.99
8.4.150.0030.00014.05
8.4.140.0190.01017.65
8.4.130.0100.01018.49
8.4.120.0120.00724.04
8.4.110.0110.00818.84
8.4.100.0140.00619.06
8.4.90.0130.00720.73
8.4.80.0090.00418.63
8.4.70.0150.00518.70
8.4.60.0130.00718.69
8.4.50.0120.00820.31
8.4.40.0080.00017.82
8.4.30.0160.00317.62
8.4.20.0160.00419.68
8.4.10.0040.00419.42
8.3.280.0120.00918.32
8.3.270.0120.00916.45
8.3.260.0060.00316.21
8.3.250.0130.00618.52
8.3.240.0100.00916.86
8.3.230.0130.00616.85
8.3.220.0090.00918.77
8.3.210.0110.00816.75
8.3.200.0060.00316.53
8.3.190.0120.00717.28
8.3.180.0060.01218.73
8.3.170.0080.00016.56
8.3.160.0090.01016.98
8.3.150.0110.00716.56
8.3.140.0040.00420.74
8.3.130.0000.01018.59
8.3.120.0080.00020.58
8.3.110.0050.00320.94
8.3.100.0000.00824.06
8.3.90.0040.00426.77
8.3.80.0060.00317.97
8.3.70.0130.00716.38
8.3.60.0070.00718.27
8.3.50.0260.00016.35
8.3.40.0100.00718.51
8.3.30.0040.01118.54
8.3.20.0080.00018.83
8.3.10.0040.00423.66
8.3.00.0000.01217.38
8.2.290.0090.00920.31
8.2.280.0130.00618.24
8.2.270.0040.00416.51
8.2.260.0070.00016.59
8.2.250.0080.00016.63
8.2.240.0040.00419.11
8.2.230.0040.00422.58
8.2.220.0040.00437.54
8.2.210.0120.00326.77
8.2.200.0000.00916.38
8.2.190.0070.01316.63
8.2.180.0100.00618.54
8.2.170.0120.00322.96
8.2.160.0000.01420.50
8.2.150.0000.00724.18
8.2.140.0030.00624.66
8.2.130.0040.00419.39
8.2.120.0070.00026.35
8.2.110.0060.00320.94
8.2.100.0080.00417.72
8.2.90.0040.00419.00
8.2.80.0080.00017.97
8.2.70.0030.00617.55
8.2.60.0040.00417.80
8.2.50.0000.00818.10
8.2.40.0080.00020.55
8.2.30.0040.00418.99
8.2.20.0070.00018.02
8.2.10.0060.00317.80
8.2.00.0070.00018.11
8.1.330.0100.00821.69
8.1.320.0110.00917.79
8.1.310.0030.01016.16
8.1.300.0060.00320.10
8.1.290.0060.00330.84
8.1.280.0030.01325.92
8.1.270.0080.00020.00
8.1.260.0060.00326.35
8.1.250.0060.00328.09
8.1.240.0140.00421.99
8.1.230.0070.00317.64
8.1.220.0000.00817.74
8.1.210.0080.00018.77
8.1.200.0030.00617.10
8.1.190.0040.00417.10
8.1.180.0040.00418.10
8.1.170.0000.00918.42
8.1.160.0000.00718.69
8.1.150.0000.00818.71
8.1.140.0040.00418.94
8.1.130.0050.00318.88
8.1.120.0000.00717.21
8.1.110.0000.00917.21
8.1.100.0040.00417.35
8.1.90.0040.00417.30
8.1.80.0000.00717.32
8.1.70.0000.00717.30
8.1.60.0040.00417.50
8.1.50.0070.00017.40
8.1.40.0030.00517.36
8.1.30.0030.00517.47
8.1.20.0000.01017.50
8.1.10.0000.00817.35
8.1.00.0050.00317.27
8.0.300.0050.00518.77
8.0.290.0090.00016.63
8.0.280.0050.00318.22
8.0.270.0040.00417.13
8.0.260.0060.00016.65
8.0.250.0000.00716.81
8.0.240.0050.00316.88
8.0.230.0030.00616.78
8.0.220.0040.00416.84
8.0.210.0000.00716.79
8.0.200.0030.00316.85
8.0.190.0000.00916.85
8.0.180.0000.00716.86
8.0.170.0080.00316.76
8.0.160.0070.00016.76
8.0.150.0040.00416.67
8.0.140.0050.00216.74
8.0.130.0040.00413.20
8.0.120.0040.00416.79
8.0.110.0000.00816.79
8.0.100.0000.00716.87
8.0.90.0030.00616.68
8.0.80.0040.01116.88
8.0.70.0000.00716.82
8.0.60.0000.00816.84
8.0.50.0000.00916.93
8.0.30.0080.00916.80
8.0.20.0110.00817.40
8.0.10.0000.00716.81
8.0.00.0110.00916.57
7.4.330.0050.00016.65
7.4.320.0070.00016.39
7.4.300.0000.00816.37
7.4.290.0000.00816.46
7.4.280.0000.00716.32
7.4.270.0060.00016.46
7.4.260.0030.00516.36
7.4.250.0030.00316.43
7.4.240.0000.00716.37
7.4.230.0070.00016.57
7.4.220.0000.00816.51
7.4.210.0170.00416.30
7.4.200.0030.00316.27
7.4.160.0100.00516.29
7.4.150.0180.00017.40
7.4.140.0110.01117.86
7.4.130.0110.00716.47
7.4.120.0090.01116.39
7.4.110.0110.00616.40
7.4.100.0030.01516.39
7.4.90.0110.00616.38
7.4.80.0130.00319.39
7.4.70.0070.01116.47
7.4.60.0040.01516.51
7.4.50.0090.00616.23
7.4.40.0080.00816.35
7.4.00.0080.00414.89
7.3.330.0000.00513.10
7.3.320.0000.00612.91
7.3.310.0000.00716.31
7.3.300.0060.00015.99
7.3.290.0090.00816.21
7.3.280.0090.00616.15
7.3.270.0160.00617.40
7.3.260.0090.00916.27
7.3.250.0100.00816.20
7.3.240.0080.00916.27
7.3.230.0060.00916.35
7.3.210.0100.00716.29
7.3.200.0070.01016.27
7.3.190.0060.01016.20
7.3.180.0040.01816.25
7.3.170.0060.01516.19
7.3.160.0180.00316.30
7.2.330.0030.01416.23
7.2.320.0100.00716.38
7.2.310.0110.00816.31
7.2.300.0030.01416.31
7.2.290.0120.00316.30
7.2.60.0060.00616.67
7.2.50.0000.00816.69
7.2.10.0390.01317.84
7.2.00.0280.01017.77
7.1.200.0130.00315.55
7.1.130.0350.01416.86
7.1.120.0310.01416.54
7.1.110.0220.00915.70
7.1.100.0340.01115.96
7.1.90.0410.00715.67
7.1.80.0350.00615.89
7.1.70.0280.01414.83
7.1.60.0520.02133.02
7.1.50.0520.00932.72
7.1.40.0470.01332.40
7.1.30.0460.01032.53
7.1.20.0590.00732.66
7.1.10.0230.01314.73
7.1.00.0320.00614.61

preferences:
27.96 ms | 403 KiB | 5 Q