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.0090.00618.28
8.3.50.0090.00921.16
8.3.40.0090.00618.79
8.3.30.0130.01018.83
8.3.20.0040.00420.30
8.3.10.0060.00323.58
8.3.00.0040.00423.66
8.2.180.0090.00616.63
8.2.170.0120.00322.96
8.2.160.0070.00720.52
8.2.150.0090.00624.18
8.2.140.0060.00324.66
8.2.130.0000.00920.77
8.2.120.0090.00026.35
8.2.110.0000.01019.21
8.2.100.0070.00417.91
8.2.90.0070.00419.08
8.2.80.0000.00817.97
8.2.70.0130.00217.25
8.2.60.0000.00817.90
8.2.50.0030.00618.09
8.2.40.0090.00022.20
8.2.30.0000.00719.38
8.2.20.0000.00817.59
8.2.10.0030.00517.98
8.2.00.0070.00018.06
8.1.280.0040.01125.92
8.1.270.0060.01223.88
8.1.260.0090.00028.09
8.1.250.0030.00528.09
8.1.240.0060.00321.37
8.1.230.0070.00317.45
8.1.220.0060.00317.74
8.1.210.0080.00018.77
8.1.200.0060.00317.23
8.1.190.0070.00417.10
8.1.180.0080.00018.10
8.1.170.0000.00818.54
8.1.160.0050.00320.56
8.1.150.0040.00420.72
8.1.140.0040.00419.51
8.1.130.0000.00717.62
8.1.120.0040.00417.25
8.1.110.0050.00217.36
8.1.100.0030.00517.32
8.1.90.0040.00417.34
8.1.80.0080.00017.36
8.1.70.0000.00717.22
8.1.60.0040.00417.52
8.1.50.0040.00417.36
8.1.40.0040.00417.49
8.1.30.0080.00017.46
8.1.20.0050.00317.57
8.1.10.0000.00817.52
8.1.00.0040.00417.43
8.0.300.0000.00718.77
8.0.290.0040.00416.63
8.0.280.0000.00718.30
8.0.270.0080.00017.18
8.0.260.0070.00017.21
8.0.250.0000.00716.98
8.0.240.0040.00416.82
8.0.230.0020.00516.83
8.0.220.0070.00016.93
8.0.210.0070.00016.88
8.0.200.0080.00017.01
8.0.190.0000.00716.82
8.0.180.0040.00416.87
8.0.170.0080.00416.91
8.0.160.0040.00416.97
8.0.150.0050.00316.91
8.0.140.0040.00416.76
8.0.130.0030.00313.32
8.0.120.0000.00816.78
8.0.110.0000.00716.91
8.0.100.0000.00716.93
8.0.90.0000.00717.00
8.0.80.0060.00916.92
8.0.70.0040.00416.88
8.0.60.0000.00816.75
8.0.50.0070.00016.71
8.0.30.0070.01017.17
8.0.20.0080.01017.40
8.0.10.0050.00316.92
8.0.00.0110.00716.86
7.4.330.0000.00516.78
7.4.320.0060.00016.46
7.4.300.0030.00316.59
7.4.290.0000.00716.52
7.4.280.0050.00316.55
7.4.270.0030.00316.53
7.4.260.0030.00316.51
7.4.250.0000.00916.62
7.4.240.0070.00016.47
7.4.230.0000.00716.61
7.4.220.0120.00616.48
7.4.210.0040.01116.69
7.4.200.0040.00416.77
7.4.160.0090.00616.70
7.4.150.0040.01617.40
7.4.140.0120.00717.86
7.4.130.0120.00516.57
7.4.120.0110.00716.63
7.4.110.0090.00916.38
7.4.100.0110.00716.57
7.4.90.0140.00316.48
7.4.80.0060.01619.39
7.4.70.0100.00616.41
7.4.60.0070.01016.67
7.4.50.0000.01416.59
7.4.40.0140.00316.57
7.4.30.0060.01116.48
7.4.00.0090.00714.99
7.3.330.0000.00513.37
7.3.320.0000.00513.38
7.3.310.0000.00716.40
7.3.300.0000.00716.41
7.3.290.0030.00316.32
7.3.280.0100.00816.36
7.3.270.0170.00017.40
7.3.260.0000.01816.39
7.3.250.0110.00816.44
7.3.240.0070.01216.38
7.3.230.0110.00816.43
7.3.210.0090.00916.38
7.3.200.0150.00219.39
7.3.190.0110.01116.29
7.3.180.0090.00916.51
7.3.170.0030.01516.50
7.3.160.0090.00616.66
7.3.120.0090.00914.71
7.3.110.0070.01014.61
7.3.100.0030.01214.88
7.3.90.0030.00714.67
7.3.80.0070.01114.91
7.3.70.0070.00714.66
7.3.60.0080.00514.94
7.3.50.0060.00514.86
7.3.40.0040.00914.63
7.3.30.0040.00414.91
7.3.20.0040.00816.38
7.3.10.0030.01016.66
7.3.00.0070.00716.61
7.2.330.0070.01116.67
7.2.320.0070.01016.68
7.2.310.0050.01416.73
7.2.300.0100.00716.68
7.2.290.0120.00416.47
7.2.250.0040.01115.16
7.2.240.0060.01214.86
7.2.230.0060.00914.97
7.2.220.0030.01214.98
7.2.210.0100.00715.18
7.2.200.0040.01114.90
7.2.190.0040.01514.93
7.2.180.0110.00414.75
7.2.170.0030.00915.03
7.2.60.0120.01216.50
7.2.00.0000.01218.85
7.1.330.0040.01115.75
7.1.320.0000.01215.73
7.1.310.0030.01015.82
7.1.300.0070.01015.71
7.1.290.0060.00915.38
7.1.280.0080.00015.73
7.1.270.0000.00815.83
7.1.260.0070.00715.77
7.1.200.0060.00915.81
7.1.100.0000.01118.07
7.1.70.0030.00617.12
7.1.60.0070.01819.40
7.1.50.0100.01016.55
7.1.00.0030.07722.44
7.0.200.0070.00714.73
7.0.60.0100.03721.71
7.0.50.0070.08317.87
7.0.40.0070.04320.24
7.0.30.0370.07720.26
7.0.20.0230.08320.10
7.0.10.0070.04020.10
7.0.00.0100.04720.06
5.6.280.0000.03720.87
5.6.210.0130.04020.55
5.6.200.0070.07718.23
5.6.190.0100.08720.41
5.6.180.0270.08020.47
5.6.170.0270.07320.57
5.6.160.0130.07720.54
5.6.150.0070.07018.18
5.6.140.0100.04318.15
5.6.130.0070.08718.16
5.6.120.0030.04020.97
5.6.110.0070.08020.96
5.6.100.0130.04721.14
5.6.90.0130.03721.00
5.6.80.0100.08020.34
5.5.350.0030.10020.34
5.5.340.0070.04018.08
5.5.330.0100.04720.43
5.5.320.0200.04020.34
5.5.310.0300.07020.34
5.5.300.0000.04017.95
5.5.290.0130.06717.98
5.5.280.0070.05320.77
5.5.270.0030.08020.96
5.5.260.0170.05720.87
5.5.250.0100.08720.66
5.5.240.0230.06020.26

preferences:
39.83 ms | 401 KiB | 5 Q