3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { function Variable() { $name = 'Bar'; $this->$name(); // This calls the Bar() method } function Bar() { echo "This is Bar"; } } $foo = new Foo(); $funcname = "Variable"; $foo->$funcname(); // This calls $foo->Variable() ?>

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.0120.00318.30
8.3.50.0110.00416.29
8.3.40.0090.01218.67
8.3.30.0030.01018.71
8.3.20.0040.00421.73
8.3.10.0040.00420.34
8.3.00.0040.00420.58
8.2.180.0080.00818.29
8.2.170.0080.00822.96
8.2.160.0030.01022.25
8.2.150.0030.00524.18
8.2.140.0060.00324.66
8.2.130.0000.00826.16
8.2.120.0050.00321.02
8.2.110.0110.00720.43
8.2.100.0060.00617.66
8.2.90.0030.00517.73
8.2.80.0000.00818.77
8.2.70.0050.00317.63
8.2.60.0000.00817.93
8.2.50.0030.00618.07
8.2.40.0080.00019.66
8.2.30.0000.00717.59
8.2.20.0030.00617.88
8.2.10.0030.00719.21
8.2.00.0000.00719.16
8.1.280.0040.01125.92
8.1.270.0040.00420.72
8.1.260.0040.00426.35
8.1.250.0110.00428.09
8.1.240.0040.00418.93
8.1.230.0040.00717.83
8.1.220.0040.00417.74
8.1.210.0030.00618.77
8.1.200.0060.00316.98
8.1.190.0000.00817.23
8.1.180.0050.00318.10
8.1.170.0040.00420.54
8.1.160.0000.00718.74
8.1.150.0040.00418.82
8.1.140.0000.00722.14
8.1.130.0000.00720.13
8.1.120.0000.01017.30
8.1.110.0050.00217.36
8.1.100.0050.00317.40
8.1.90.0000.00717.41
8.1.80.0050.00317.28
8.1.70.0060.00317.36
8.1.60.0030.00617.47
8.1.50.0040.00417.55
8.1.40.0000.00817.49
8.1.30.0000.00717.59
8.1.20.0050.00917.59
8.1.10.0050.00317.47
8.1.00.0080.00017.52
8.0.300.0000.00818.77
8.0.290.0050.00316.63
8.0.280.0040.00420.11
8.0.270.0000.00818.05
8.0.260.0070.00020.06
8.0.250.0000.00616.95
8.0.240.0000.00716.89
8.0.230.0030.00316.80
8.0.220.0000.00716.84
8.0.210.0030.00316.84
8.0.200.0030.00316.92
8.0.190.0000.00716.86
8.0.180.0000.01016.87
8.0.170.0040.00416.74
8.0.160.0030.00416.83
8.0.150.0070.00016.71
8.0.140.0040.00416.80
8.0.130.0000.00513.36
8.0.120.0050.00216.81
8.0.110.0070.00016.80
8.0.100.0050.00316.77
8.0.90.0040.00416.62
8.0.80.0120.00316.86
8.0.70.0000.00716.90
8.0.60.0000.00716.81
8.0.50.0070.00016.86
8.0.30.0130.00717.03
8.0.20.0150.00417.36
8.0.10.0040.00416.83
8.0.00.0140.00416.91
7.4.330.0060.00015.55
7.4.320.0000.00716.39
7.4.300.0000.00616.49
7.4.290.0040.00416.59
7.4.280.0040.00416.39
7.4.270.0060.00016.63
7.4.260.0030.00313.24
7.4.250.0000.00716.45
7.4.240.0040.00416.42
7.4.230.0000.00716.71
7.4.220.0060.00116.58
7.4.210.0070.00716.59
7.4.200.0000.00716.42
7.4.130.0030.01516.45
7.4.120.0090.01316.40
7.4.110.0090.00916.51
7.4.100.0160.00316.71
7.4.90.0030.01316.50
7.4.80.0070.01019.39
7.4.70.0130.00316.46
7.4.60.0120.00316.59
7.4.50.0060.00616.61
7.4.40.0090.00816.60
7.4.00.0070.00714.59
7.3.330.0070.00016.31
7.3.320.0050.00013.00
7.3.310.0000.00716.22
7.3.300.0000.00716.27
7.3.290.0040.00416.23
7.3.280.0150.00016.14
7.3.260.0040.01216.21
7.3.230.0060.01616.46
7.3.210.0130.00316.40
7.3.200.0050.01316.38
7.3.190.0060.00916.29
7.3.180.0040.01116.16
7.3.170.0130.00316.19
7.3.160.0030.01316.50
7.3.120.0060.00614.76
7.3.110.0060.00614.26
7.3.100.0060.00914.88
7.3.90.0130.00014.52
7.3.80.0100.00314.83
7.3.70.0090.00914.47
7.3.60.0080.00514.53
7.3.50.0080.00814.30
7.3.40.0100.00314.32
7.3.30.0080.00514.58
7.3.20.0100.00314.64
7.3.10.0090.00414.64
7.3.00.0030.01014.44
7.2.330.0160.00316.60
7.2.320.0090.01216.31
7.2.310.0070.01016.50
7.2.300.0110.00716.37
7.2.290.0080.00816.25
7.2.250.0120.00314.92
7.2.240.0110.00414.79
7.2.230.0070.01014.89
7.2.220.0110.00314.93
7.2.210.0040.01014.83
7.2.200.0190.00314.68
7.2.190.0060.00914.91
7.2.180.0070.01014.69
7.2.170.0060.00914.73
7.1.330.0110.00513.74
7.1.320.0100.00613.52
7.1.310.0130.00013.46
7.1.300.0130.00013.87
7.1.290.0100.00313.74
7.1.280.0050.00813.83
7.1.270.0290.01313.88
7.1.260.0100.00313.56

preferences:
45.42 ms | 400 KiB | 5 Q