3v4l.org

run code in 300+ PHP versions simultaneously
<?php class User { public function getName() { return "SomeName"; } } $result = [ 'command' => 'getName' ]; $user = new User(); echo $user->{$result['command']}();

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.60.0170.00316.50
8.3.50.0140.00016.53
8.3.40.0140.00418.72
8.3.30.0140.00018.70
8.3.20.0040.00420.34
8.3.10.0040.00421.77
8.3.00.0080.00017.90
8.2.180.0100.01025.92
8.2.170.0110.00419.04
8.2.160.0030.01022.96
8.2.150.0030.00624.18
8.2.140.0040.00424.66
8.2.130.0040.00419.31
8.2.120.0040.00426.35
8.2.110.0080.00320.21
8.2.100.0070.00417.90
8.2.90.0050.00319.40
8.2.80.0040.00417.97
8.2.70.0050.00317.49
8.2.60.0090.00018.05
8.2.50.0030.00618.10
8.2.40.0000.00720.64
8.2.30.0070.00019.27
8.2.20.0040.00418.16
8.2.10.0040.00417.96
8.2.00.0080.00018.16
8.1.280.0070.01425.92
8.1.270.0050.00323.82
8.1.260.0000.00826.35
8.1.250.0000.00828.09
8.1.240.0030.00623.92
8.1.230.0060.00617.89
8.1.220.0040.00417.74
8.1.210.0080.00018.77
8.1.200.0030.00717.22
8.1.190.0000.00817.10
8.1.180.0000.00818.10
8.1.170.0000.00918.54
8.1.160.0000.00719.06
8.1.150.0040.00420.66
8.1.140.0050.00219.50
8.1.130.0030.00618.89
8.1.120.0020.00517.34
8.1.110.0070.00017.41
8.1.100.0050.00317.28
8.1.90.0000.00717.46
8.1.80.0030.00617.43
8.1.70.0070.00017.34
8.1.60.0030.00517.57
8.1.50.0000.00717.56
8.1.40.0050.00317.43
8.1.30.0040.00417.48
8.1.20.0070.00017.67
8.1.10.0040.00417.54
8.1.00.0040.00417.44
8.0.300.0080.00018.77
8.0.290.0060.00316.75
8.0.280.0070.00018.34
8.0.270.0080.00017.26
8.0.260.0030.00516.84
8.0.250.0070.00016.93
8.0.240.0070.00016.85
8.0.230.0080.00016.95
8.0.220.0000.00716.73
8.0.210.0030.00316.83
8.0.200.0030.00316.87
8.0.190.0050.00316.87
8.0.180.0080.00016.75
8.0.170.0040.00416.81
8.0.160.0000.00716.83
8.0.150.0070.00016.90
8.0.140.0040.00416.70
8.0.130.0000.00513.33
8.0.120.0000.00716.80
8.0.110.0000.00716.88
8.0.100.0000.00716.67
8.0.90.0080.00316.86
8.0.80.0150.00016.85
8.0.70.0000.00716.70
8.0.60.0000.00816.86
8.0.50.0000.00716.82
8.0.30.0100.00917.08
8.0.20.0090.01017.40
8.0.10.0040.00416.84
8.0.00.0160.00616.78
7.4.330.0050.00015.55
7.4.320.0000.00716.57
7.4.300.0000.00716.43
7.4.290.0030.00816.59
7.4.280.0090.00016.39
7.4.270.0070.00016.53
7.4.260.0000.00816.36
7.4.250.0000.00816.56
7.4.240.0000.00716.50
7.4.230.0070.00016.39
7.4.220.0060.01316.50
7.4.210.0060.00916.52
7.4.200.0000.00716.60
7.4.160.0090.00816.45
7.4.150.0120.00617.40
7.4.140.0120.00817.86
7.4.130.0140.00316.42
7.4.120.0130.00816.43
7.4.110.0160.00316.59
7.4.100.0160.00016.36
7.4.90.0130.00316.62
7.4.80.0100.00719.39
7.4.70.0090.00616.60
7.4.60.0100.00616.52
7.4.50.0090.00616.52
7.4.40.0030.01316.71
7.4.30.0040.01416.41
7.4.00.0060.01114.88
7.3.330.0050.00213.08
7.3.320.0030.00313.17
7.3.310.0030.00316.31
7.3.300.0030.00316.29
7.3.290.0000.00716.20
7.3.280.0040.01216.28
7.3.270.0130.00717.40
7.3.260.0080.00916.31
7.3.250.0100.00816.31
7.3.240.0100.00716.39
7.3.230.0100.00716.23
7.3.210.0100.00616.38
7.3.200.0040.01116.26
7.3.190.0080.00816.36
7.3.180.0040.01116.39
7.3.170.0090.00916.36
7.3.160.0060.00916.48
7.3.120.0070.01015.02
7.3.110.0060.00614.46
7.3.100.0070.00714.74
7.3.90.0060.01015.05
7.3.80.0070.00714.97
7.3.70.0030.00714.79
7.3.60.0060.01014.88
7.3.50.0060.00914.69
7.3.40.0000.01514.78
7.3.30.0060.00914.63
7.3.20.0110.00716.56
7.3.10.0060.00916.63
7.3.00.0030.01316.35
7.2.330.0040.01416.79
7.2.320.0130.00316.84
7.2.310.0040.01416.66
7.2.300.0030.01916.50
7.2.290.0090.00616.90
7.2.240.0090.00914.83
7.2.230.0080.00614.93
7.2.220.0070.00715.11
7.2.210.0080.00814.78
7.2.200.0100.00314.82
7.2.190.0040.01114.98
7.2.180.0130.00314.93
7.2.170.0110.00714.68
7.2.160.0100.00714.95
7.2.150.0070.01016.90
7.2.140.0080.00416.82
7.2.130.0030.01416.78
7.2.120.0030.00716.79
7.2.110.0090.00616.82
7.2.100.0030.01416.89
7.2.90.0060.00616.85
7.2.80.0030.01416.79
7.2.70.0030.01217.01
7.2.60.0040.00516.96
7.2.50.0000.01316.89
7.2.40.0070.01016.77
7.2.30.0030.01516.94
7.2.20.0040.01116.88
7.2.10.0080.00316.81
7.2.00.0100.00716.74
7.1.330.0060.01215.72
7.1.320.0030.00615.96
7.1.310.0080.00315.50
7.1.300.0160.00015.74
7.1.290.0030.00915.79
7.1.280.0040.00915.86
7.1.270.0110.00515.42
7.1.260.0040.00815.74
7.1.250.0070.00715.75
7.1.200.0100.00715.43
7.1.100.0060.00617.81
7.1.70.0030.00717.09
7.1.60.0000.01217.27
7.1.50.0030.00716.57
7.1.40.0070.00716.59
7.1.30.0000.01116.79
7.1.20.0060.00616.64
7.1.10.0000.01016.57
7.1.00.0070.00716.56
7.0.200.0000.00816.79
7.0.190.0030.00316.47
7.0.180.0000.01716.34
7.0.170.0030.00716.32
7.0.160.0070.01016.30
7.0.150.0000.00816.16
7.0.140.0000.00816.39
7.0.130.0040.00416.34
7.0.120.0070.00016.71
7.0.110.0040.01516.36
7.0.100.0060.00616.55
7.0.90.0060.00616.37
7.0.80.0120.00616.39
7.0.70.0110.00016.29
7.0.60.0110.01116.29
7.0.50.0100.01316.22
7.0.40.0030.00615.09
7.0.30.0000.01115.09
7.0.20.0110.00715.09
7.0.10.0030.00715.09
7.0.00.0030.00615.09

preferences:
47.79 ms | 400 KiB | 5 Q