3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Car { public function getMilage() { echo 100000; } } $carObj = new Car(); $array = ['method'=>'getMilage', 'object'=>$carObj]; $mileage = $array['object']->{$array['method']}();

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.140.0000.00817.10
8.3.130.0040.00416.47
8.3.120.0190.00020.61
8.3.110.0080.00020.94
8.3.100.0090.00018.39
8.3.90.0050.00326.77
8.3.80.0030.01019.36
8.3.70.0090.00918.30
8.3.60.0140.00718.43
8.3.50.0120.00518.27
8.3.40.0110.00318.82
8.3.30.0040.01118.58
8.3.20.0080.00021.76
8.3.10.0040.00423.48
8.3.00.0060.00319.44
8.2.250.0080.00018.29
8.2.240.0030.00517.02
8.2.230.0090.00022.58
8.2.220.0060.00324.06
8.2.210.0160.00026.77
8.2.200.0000.00918.88
8.2.190.0120.00316.58
8.2.180.0080.00618.16
8.2.170.0120.00422.96
8.2.160.0030.01020.46
8.2.150.0040.00424.18
8.2.140.0070.00424.66
8.2.130.0040.00419.33
8.2.120.0080.00026.35
8.2.110.0090.00022.25
8.2.100.0040.00817.91
8.2.90.0050.00318.03
8.2.80.0040.00718.16
8.2.70.0040.00417.87
8.2.60.0000.00817.90
8.2.50.0070.00018.10
8.2.40.0050.00320.65
8.2.30.0060.00319.36
8.2.20.0040.00417.97
8.2.10.0040.00417.94
8.2.00.0050.00318.04
8.1.300.0160.00316.25
8.1.290.0030.00630.84
8.1.280.0100.01025.92
8.1.270.0080.00023.99
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0040.00423.84
8.1.230.0040.00720.82
8.1.220.0050.00317.74
8.1.210.0070.00418.88
8.1.200.0050.00317.23
8.1.190.0040.00417.10
8.1.180.0000.00818.10
8.1.170.0050.00318.44
8.1.160.0050.00318.82
8.1.150.0000.00719.09
8.1.140.0050.00217.62
8.1.130.0000.00619.00
8.1.120.0000.00817.42
8.1.110.0090.00317.44
8.1.100.0030.00317.33
8.1.90.0040.00417.33
8.1.80.0000.00717.29
8.1.70.0030.00317.34
8.1.60.0060.00317.63
8.1.50.0040.00417.39
8.1.40.0040.00417.46
8.1.30.0060.00317.59
8.1.20.0070.00017.47
8.1.10.0030.00617.59
8.1.00.0050.00217.47
8.0.300.0040.00419.79
8.0.290.0040.00416.75
8.0.280.0000.00718.42
8.0.270.0000.00717.16
8.0.260.0040.00417.21
8.0.250.0030.00316.78
8.0.240.0040.00416.76
8.0.230.0030.00316.90
8.0.220.0000.00716.85
8.0.210.0070.00016.79
8.0.200.0000.00716.88
8.0.190.0050.00316.79
8.0.180.0030.00316.75
8.0.170.0000.00916.83
8.0.160.0040.00416.74
8.0.150.0050.00216.75
8.0.140.0000.00716.70
8.0.130.0030.00313.24
8.0.120.0000.00716.68
8.0.110.0040.00416.85
8.0.100.0070.00016.86
8.0.90.0040.00416.82
8.0.80.0130.00316.82
8.0.70.0030.00516.86
8.0.60.0050.00316.72
8.0.50.0040.00416.84
8.0.30.0090.00917.04
8.0.20.0120.00817.40
8.0.10.0040.00416.95
8.0.00.0090.00916.79
7.4.330.0000.00515.55
7.4.320.0000.00616.45
7.4.300.0060.00016.41
7.4.290.0030.00616.62
7.4.280.0060.00316.58
7.4.270.0040.00416.47
7.4.260.0030.00516.55
7.4.250.0000.00716.55
7.4.240.0070.00016.55
7.4.230.0040.00416.57
7.4.220.0040.00416.60
7.4.210.0110.00716.49
7.4.200.0040.00416.34
7.4.160.0030.01316.54
7.4.140.0120.00717.86
7.4.130.0120.00416.31
7.4.120.0100.00816.58
7.4.110.0060.00916.70
7.4.100.0140.01116.55
7.4.90.0100.00716.49
7.4.80.0030.01519.39
7.4.70.0030.01416.56
7.4.60.0070.01016.55
7.4.50.0000.01916.63
7.4.40.0060.00916.53
7.4.20.0030.01316.59
7.4.10.0130.00815.66
7.4.00.0060.01215.42
7.3.330.0000.00513.24
7.3.320.0000.00513.40
7.3.310.0000.00816.32
7.3.300.0070.00016.29
7.3.290.0000.00716.41
7.3.280.0090.00516.34
7.3.260.0070.01316.50
7.3.240.0100.00616.59
7.3.230.0130.00316.27
7.3.210.0100.00716.64
7.3.200.0130.00616.59
7.3.190.0090.00816.25
7.3.180.0060.01316.44
7.3.170.0080.00816.27
7.3.160.0070.01416.48
7.3.130.0120.00715.56
7.3.120.0150.00015.80
7.3.110.0080.01015.60
7.3.100.0060.01015.79
7.3.90.0070.00915.69
7.3.80.0100.00715.59
7.3.70.0080.00815.57
7.3.60.0060.01015.63
7.3.50.0040.01315.65
7.3.40.0050.01215.63
7.3.30.0090.00815.63
7.3.20.0080.00916.51
7.3.10.0070.00916.56
7.3.00.0110.00516.54
7.2.330.0180.00616.54
7.2.320.0130.00316.79
7.2.310.0090.00616.59
7.2.300.0120.00416.54
7.2.290.0170.00616.72
7.2.260.0040.01615.94
7.2.250.0080.01015.87
7.2.240.0100.00715.87
7.2.230.0120.00515.86
7.2.220.0080.01215.98
7.2.210.0080.00815.73
7.2.200.0060.00915.67
7.2.190.0070.01215.74
7.2.180.0070.01215.88
7.2.170.0130.00315.83
7.2.160.0080.01015.66
7.2.150.0090.00716.70
7.2.140.0030.01116.88
7.2.130.0110.00616.78
7.2.120.0070.01016.82
7.2.110.0040.01016.63
7.2.100.0060.01116.90
7.2.90.0100.00716.78
7.2.80.0040.01116.70
7.2.70.0040.01316.84
7.2.60.0060.01216.73
7.2.50.0060.00716.71
7.2.40.0260.00717.08
7.2.30.0520.01017.07
7.2.20.0300.01017.12
7.2.10.0280.01217.16
7.2.00.0230.01117.08
7.1.330.0080.01115.54
7.1.320.0140.00315.44
7.1.310.0140.00815.64
7.1.300.0090.01015.69
7.1.290.0110.00815.55
7.1.280.0140.00915.59
7.1.270.0070.00715.59
7.1.260.0050.01115.54
7.1.250.0040.01015.66
7.1.240.0130.00615.54
7.1.230.0140.00515.64
7.1.220.0090.00915.34
7.1.210.0080.00915.64
7.1.200.0120.00215.60
7.1.190.0130.00315.51
7.1.180.0050.01015.40
7.1.170.0090.00815.67
7.1.160.0300.00715.89
7.1.150.0320.01315.91
7.1.140.0310.00716.01
7.1.130.0290.00915.97
7.1.120.0270.01215.95
7.1.110.0390.00815.85
7.1.100.0360.00915.81
7.1.90.0090.00715.78
7.1.80.0100.00615.70
7.1.70.0090.00815.43
7.1.60.0150.00821.42
7.1.50.0400.00721.24
7.1.40.0120.01321.25
7.1.30.0350.01221.23
7.1.20.0110.01021.23
7.1.10.0120.00815.30
7.1.00.0100.00715.19
7.0.330.0070.00715.17
7.0.320.0060.01015.20
7.0.310.0060.01115.31
7.0.300.0040.01015.14
7.0.290.0110.00515.18
7.0.280.0070.01215.14
7.0.270.0070.00915.33
7.0.260.0060.01215.30
7.0.250.0040.01215.18
7.0.240.0090.00615.24
7.0.230.0210.00415.37
7.0.220.0070.00815.34
7.0.210.0040.00815.17
7.0.200.0070.00915.31
7.0.190.0070.00915.27
7.0.180.0030.01215.24
7.0.170.0080.00915.26
7.0.160.0060.00715.36
7.0.150.0060.01015.10
7.0.140.0100.00815.32
7.0.130.0080.00715.34
7.0.120.0080.00715.26
7.0.110.0090.00615.33
7.0.100.0050.00715.38
7.0.90.0100.00815.24
7.0.80.0080.00715.37
7.0.70.0110.00715.28
7.0.60.0070.01215.22
7.0.50.0050.01015.29
7.0.40.0080.01214.32
7.0.30.0060.01314.28
7.0.20.0120.00914.03
7.0.10.0100.00614.21
7.0.00.0060.01114.32
5.6.400.0070.00915.12
5.6.390.0130.00615.24
5.6.380.0080.01215.12
5.6.370.0060.01214.86
5.6.360.0080.00915.11
5.6.350.0080.01015.04
5.6.340.0110.01015.24
5.6.330.0090.01115.18
5.6.320.0030.01615.14
5.6.310.0060.01114.95
5.6.300.0050.01415.17
5.6.290.0060.01415.07
5.6.280.0140.00714.95
5.6.270.0050.01214.90
5.6.260.0110.00715.12
5.6.250.0110.00715.07
5.6.240.0050.01315.07
5.6.230.0130.00515.03
5.6.220.0090.01315.29
5.6.210.0090.01215.08
5.6.200.0110.00814.95
5.6.190.0110.01015.24
5.6.180.0100.00915.00
5.6.170.0090.01015.12
5.6.160.0140.00514.99
5.6.150.0080.01115.02
5.6.140.0070.01315.10
5.6.130.0100.00814.97
5.6.120.0110.00915.17
5.6.110.0110.00815.12
5.6.100.0090.01015.21
5.6.90.0070.01115.22
5.6.80.0120.00814.85
5.6.70.0130.00515.06
5.6.60.0100.01115.06
5.6.50.0090.01214.93
5.6.40.0090.01115.04
5.6.30.0120.00515.00
5.6.20.0060.01314.92
5.6.10.0120.00514.99
5.6.00.0080.01014.93

preferences:
16.24 ms | 403 KiB | 5 Q