3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface MongoEntityInterface { public function getIdField(); } class UserEntity implements MongoEntityInterface { public function getIdField() { return 'userId'; } }

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.3.70.0070.00716.58
8.3.60.0090.00918.43
8.3.50.0070.00717.92
8.3.40.0110.00418.49
8.3.30.0120.00618.63
8.3.20.0040.00418.66
8.3.10.0040.00423.63
8.3.00.0040.00420.70
8.2.180.0100.01018.16
8.2.170.0090.00622.96
8.2.160.0070.00722.13
8.2.150.0000.00824.18
8.2.140.0040.00424.66
8.2.130.0000.00719.64
8.2.120.0060.01226.35
8.2.110.0060.00319.21
8.2.100.0070.00417.72
8.2.90.0040.00417.75
8.2.80.0030.00617.97
8.2.70.0030.00517.80
8.2.60.0050.00218.09
8.2.50.0000.00818.10
8.2.40.0040.00419.21
8.2.30.0000.01019.11
8.2.20.0050.00218.21
8.2.10.0000.00717.87
8.2.00.0000.00817.45
8.1.280.0140.00025.92
8.1.270.0040.00423.86
8.1.260.0080.00026.35
8.1.250.0080.00028.09
8.1.240.0060.00319.52
8.1.230.0080.00417.70
8.1.220.0030.00617.74
8.1.210.0080.00018.77
8.1.200.0090.00017.36
8.1.190.0040.00417.00
8.1.180.0030.00618.10
8.1.170.0070.00018.65
8.1.160.0000.00718.69
8.1.150.0070.00018.81
8.1.140.0000.00721.97
8.1.130.0000.00720.08
8.1.120.0100.00017.30
8.1.110.0040.00417.41
8.1.100.0070.00017.29
8.1.90.0070.00017.34
8.1.80.0000.00717.39
8.1.70.0040.00417.26
8.1.60.0040.00417.41
8.1.50.0030.00617.45
8.1.40.0040.00417.45
8.1.30.0040.00417.56
8.1.20.0000.00817.52
8.1.10.0000.00717.34
8.1.00.0000.00717.22
8.0.300.0000.00718.77
8.0.290.0000.00716.63
8.0.280.0050.00318.32
8.0.270.0030.00317.09
8.0.260.0060.00018.37
8.0.250.0030.00316.85
8.0.240.0060.00016.87
8.0.230.0000.01116.91
8.0.220.0000.00716.80
8.0.210.0040.00316.71
8.0.200.0030.00316.83
8.0.190.0080.00016.90
8.0.180.0080.00016.81
8.0.170.0030.00616.80
8.0.160.0000.00716.73
8.0.150.0030.00316.84
8.0.140.0040.00416.67
8.0.130.0040.00413.21
8.0.120.0000.00716.75
8.0.110.0040.00416.65
8.0.100.0030.00316.87
8.0.90.0030.00616.62
8.0.80.0050.01016.71
8.0.70.0050.00316.65
8.0.60.0050.00216.73
8.0.50.0040.00416.86
8.0.30.0090.00917.21
8.0.20.0030.01917.40
8.0.10.0000.00816.75
8.0.00.0110.00816.77
7.4.330.0040.00015.55
7.4.320.0030.00316.42
7.4.300.0000.00616.51
7.4.290.0000.00616.54
7.4.280.0080.00016.36
7.4.270.0040.00416.41
7.4.260.0080.00016.50
7.4.250.0040.00416.53
7.4.240.0030.00316.54
7.4.230.0030.00316.42
7.4.220.0050.00316.54
7.4.210.0090.00816.55
7.4.200.0030.00316.46
7.4.160.0090.01016.46
7.4.140.0090.00917.86
7.4.130.0170.00316.52
7.4.120.0160.00516.50
7.4.110.0100.00716.41
7.4.100.0090.00916.36
7.4.90.0120.00916.51
7.4.80.0060.00919.39
7.4.70.0110.01116.40
7.4.60.0120.00916.40
7.4.50.0060.00916.13
7.4.40.0100.00616.27
7.3.330.0050.00013.17
7.3.320.0030.00313.15
7.3.310.0000.00916.18
7.3.300.0050.00216.03
7.3.290.0030.00316.18
7.3.280.0090.00816.12
7.3.260.0070.01016.28
7.3.240.0130.00616.34
7.3.230.0130.00316.29
7.3.210.0060.01116.25
7.3.200.0090.01216.21
7.3.190.0120.00616.45
7.3.180.0060.01616.32
7.3.170.0150.00716.53
7.3.160.0070.01516.11
7.2.330.0110.00616.64
7.2.320.0060.01316.23
7.2.310.0170.00416.39
7.2.300.0050.01116.56
7.2.290.0070.01416.59

preferences:
58.97 ms | 401 KiB | 5 Q