3v4l.org

run code in 300+ PHP versions simultaneously
<?php class foo { public $newfunc; public function __construct() { $this->newfunc = create_function('$a,$b','print "ln($a) + ln($b) = ".log($a * $b);'); call_user_func(array($this, $this->newfunc), 1, 2); //$this->$newfunc(1, 2); } } $f = new foo();

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.0070.00718.18
8.3.50.0090.01221.16
8.3.40.0060.00918.86
8.3.30.0090.00618.73
8.3.20.0040.01120.34
8.3.10.0080.00023.79
8.3.00.0060.00323.43
8.2.180.0040.01116.75
8.2.170.0100.01022.96
8.2.160.0150.00020.35
8.2.150.0000.00824.18
8.2.140.0000.00824.66
8.2.130.0040.00421.04
8.2.120.0040.00426.35
8.2.110.0060.00319.34
8.2.100.0080.00417.91
8.2.90.0040.00419.27
8.2.80.0000.00917.97
8.2.70.0050.00917.13
8.2.60.0080.00017.93
8.2.50.0040.00418.09
8.2.40.0000.00922.38
8.2.30.0040.00419.37
8.2.20.0040.00417.55
8.2.10.0040.00417.86
8.2.00.0040.00417.98
8.1.280.0140.00725.92
8.1.270.0090.00923.93
8.1.260.0080.00028.09
8.1.250.0000.00828.09
8.1.240.0030.00621.24
8.1.230.0070.00417.42
8.1.220.0060.00317.74
8.1.210.0000.00818.77
8.1.200.0000.00917.23
8.1.190.0000.00917.10
8.1.180.0040.00418.10
8.1.170.0080.00018.65
8.1.160.0040.00420.64
8.1.150.0040.00420.66
8.1.140.0040.00419.37
8.1.130.0070.00017.51
8.1.120.0050.00317.24
8.1.110.0040.00417.36
8.1.100.0040.00417.21
8.1.90.0030.00317.23
8.1.80.0030.00517.36
8.1.70.0000.00817.27
8.1.60.0090.00017.51
8.1.50.0030.00617.38
8.1.40.0030.00517.37
8.1.30.0000.00817.58
8.1.20.0040.00417.54
8.1.10.0000.00717.48
8.1.00.0000.00717.48
8.0.300.0070.00018.77
8.0.290.0040.00416.63
8.0.280.0000.00718.29
8.0.270.0040.00417.26
8.0.260.0000.00817.18
8.0.250.0040.00416.84
8.0.240.0050.00216.96
8.0.230.0030.00316.86
8.0.220.0040.00416.80
8.0.210.0000.00716.80
8.0.200.0000.00716.86
8.0.190.0000.00716.98
8.0.180.0000.00816.84
8.0.170.0030.00616.88
8.0.160.0040.00416.84
8.0.150.0070.00016.86
8.0.140.0070.00016.75
8.0.130.0030.00313.35
8.0.120.0060.00316.81
8.0.110.0000.00716.82
8.0.100.0040.00416.73
8.0.90.0050.00316.82
8.0.80.0060.01016.89
8.0.70.0080.00016.76
8.0.60.0000.00816.80
8.0.50.0040.00416.74
8.0.30.0090.01216.90
8.0.20.0090.01017.40
8.0.10.0000.00717.01
8.0.00.0110.00616.59
7.4.330.0030.00316.83
7.4.320.0030.00316.59
7.4.300.0030.00316.51
7.4.290.0060.00016.61
7.4.280.0000.00816.50
7.4.270.0000.00716.60
7.4.260.0040.00416.50
7.4.250.0040.00416.44
7.4.240.0070.00016.51
7.4.230.0040.00416.76
7.4.220.0080.01216.67
7.4.210.0050.01216.68
7.4.200.0000.00716.55
7.4.160.0090.00616.61
7.4.150.0040.01417.40
7.4.140.0080.01317.86
7.4.130.0080.01016.53
7.4.120.0110.00716.67
7.4.110.0150.00916.61
7.4.100.0070.01616.52
7.4.90.0070.01016.48
7.4.80.0110.00519.39
7.4.70.0070.00916.42
7.4.60.0030.01716.68
7.4.50.0080.00816.59
7.4.40.0030.01716.65
7.4.30.0140.00416.68
7.4.00.0050.01114.91
7.3.330.0020.00213.44
7.3.320.0050.00013.29
7.3.310.0060.00016.39
7.3.300.0000.00816.28
7.3.290.0000.00716.41
7.3.280.0070.01016.33
7.3.270.0170.00017.40
7.3.260.0110.00616.52
7.3.250.0090.00816.39
7.3.240.0140.00716.61
7.3.230.0140.01116.46
7.3.210.0060.01216.44
7.3.200.0060.01116.53
7.3.190.0090.00916.55
7.3.180.0100.01016.38
7.3.170.0060.01116.53
7.3.160.0040.01116.37
7.3.120.0080.01014.88
7.3.110.0050.01214.78
7.3.100.0040.01014.68
7.3.90.0050.01114.81
7.3.80.0050.01114.82
7.3.70.0020.01114.75
7.3.60.0070.00714.79
7.3.50.0090.00514.71
7.3.40.0040.00514.64
7.3.30.0020.01314.69
7.3.20.0060.00716.48
7.3.10.0130.00716.71
7.3.00.0020.01216.31
7.2.330.0000.01716.61
7.2.320.0080.00816.39
7.2.310.0030.01316.73
7.2.300.0070.01116.80
7.2.290.0080.00816.59
7.2.250.0000.01714.68
7.2.240.0040.01114.94
7.2.230.0050.01114.98
7.2.220.0070.00715.11
7.2.210.0070.01015.03
7.2.200.0060.00615.09
7.2.190.0090.00914.82
7.2.180.0060.00715.01
7.2.170.0080.00714.98
7.2.160.0040.01115.01
7.2.150.0130.00317.00
7.2.140.0070.00416.92
7.2.130.0100.00816.74
7.2.120.0080.00816.49
7.2.110.0090.00616.62
7.2.100.0060.00916.57
7.2.90.0060.01216.54
7.2.80.0090.00816.40
7.2.70.0120.00816.43
7.2.60.0090.00816.40
7.2.50.0090.00616.77
7.2.40.0100.01116.55
7.2.30.0110.00816.62
7.2.20.0110.00916.61
7.2.10.0110.00916.62
7.2.00.0070.00617.37
7.1.330.0110.00415.88
7.1.320.0040.00815.57
7.1.310.0050.00915.66
7.1.300.0070.00815.68
7.1.290.0030.00915.75
7.1.280.0050.00815.66
7.1.270.0050.00715.82
7.1.260.0000.01115.79
7.1.250.0080.00615.22
7.1.200.0000.00815.85
7.1.100.0090.00617.77
7.1.70.0000.00717.02
7.1.60.0110.01419.40
7.1.50.0060.00616.58
7.1.00.0070.07022.33
7.0.200.0900.00314.74
7.0.60.0170.03321.75
7.0.50.0030.05017.89
7.0.40.0030.04720.02
7.0.30.0130.05720.13
7.0.20.0200.06020.09
7.0.10.0030.04320.12
7.0.00.0070.04320.10
5.6.280.0000.06321.00
5.6.210.0130.04720.68
5.6.200.0070.08018.15
5.6.190.0100.05020.52
5.6.180.0200.08720.52
5.6.170.0270.07020.58
5.6.160.0070.06320.71
5.6.150.0100.07718.25
5.6.140.0070.07718.25
5.6.130.0170.06718.23
5.6.120.0030.04321.08
5.6.110.0070.07021.11
5.6.100.0170.07321.00
5.6.90.0170.07020.99
5.6.80.0100.07320.48
5.5.350.0070.04020.38
5.5.340.0130.05318.03
5.5.330.0030.09020.21
5.5.320.0400.03720.25
5.5.310.0230.05320.32
5.5.300.0000.04017.95
5.5.290.0100.03317.98
5.5.280.0100.08020.73
5.5.270.0030.07720.96
5.5.260.0100.08320.76
5.5.250.0100.07720.61
5.5.240.0130.07020.35

preferences:
48.59 ms | 401 KiB | 5 Q