3v4l.org

run code in 300+ PHP versions simultaneously
<?php class ZCE { public $me = 1; public function __construct($me) { $this->me = $me; } public function getProp() { return function($he) { return $this->me*$he; }; } } $a = new ZCE(2); $a->getProp = function($x) { return $x*$x; }; $m = $a->getProp(); echo $m(3);

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.70.0070.00718.39
8.3.60.0100.01016.88
8.3.50.0080.00918.40
8.3.40.0080.00818.84
8.3.30.0070.01120.91
8.3.20.0070.00721.73
8.3.10.0100.00322.46
8.3.00.0070.00722.71
8.2.190.0190.00016.88
8.2.180.0110.00325.92
8.2.170.0140.00322.96
8.2.160.0090.01222.48
8.2.150.0100.00323.57
8.2.140.0090.00623.81
8.2.130.0040.00924.56
8.2.120.0080.00621.95
8.2.110.0070.00921.02
8.2.100.0110.00520.40
8.2.90.0070.00920.36
8.2.80.0090.00320.50
8.2.70.0060.00520.23
8.2.60.0020.00920.29
8.2.50.0060.00620.29
8.2.40.0080.00321.23
8.2.30.0040.00721.07
8.2.20.0020.00920.51
8.2.10.0080.00421.13
8.2.00.0060.00621.11
8.1.280.0140.00025.92
8.1.270.0060.00623.38
8.1.260.0090.00624.66
8.1.250.0020.01025.53
8.1.240.0100.00323.49
8.1.230.0080.00621.92
8.1.220.0070.00720.35
8.1.210.0070.00720.87
8.1.200.0070.00520.16
8.1.190.0050.00820.11
8.1.180.0090.00320.53
8.1.170.0030.00820.29
8.1.160.0070.00420.94
8.1.150.0090.00520.93
8.1.140.0080.00721.90
8.1.130.0070.00721.53
8.1.120.0080.00820.23
8.1.110.0060.00620.15
8.1.100.0110.00220.20
8.1.90.0070.00720.20
8.1.80.0070.00520.17
8.1.70.0050.00620.19
8.1.60.0040.00720.20
8.1.50.0050.00720.19
8.1.40.0090.00320.20
8.1.30.0040.00720.32
8.1.20.0020.01020.27
8.1.10.0060.00520.23
8.1.00.0070.00520.20
8.0.300.0080.00621.52
8.0.290.0100.00619.92
8.0.280.0120.00920.66
8.0.270.0110.00419.84
8.0.260.0180.00221.54
8.0.250.0160.00319.97
8.0.240.0130.00619.92
8.0.230.0140.00519.94
8.0.220.0120.00519.84
8.0.210.0160.00519.90
8.0.200.0150.00519.91
8.0.190.0110.00719.97
8.0.180.0120.00719.94
8.0.170.0070.00919.93
8.0.160.0160.00119.89
8.0.150.0160.00719.90
8.0.140.0140.00719.91
8.0.130.0090.00417.70
8.0.120.0110.00818.88
8.0.110.0140.00718.85
8.0.100.0130.00418.90
8.0.90.0110.00618.89
8.0.80.0080.01118.90
8.0.70.0090.00418.90
8.0.60.0100.00618.86
8.0.50.0130.00618.92
8.0.30.0120.00818.15
8.0.20.0170.00318.91
8.0.10.0130.00918.97
8.0.00.0140.00918.88
7.4.330.0100.00619.83
7.4.320.0130.00419.74
7.4.300.0200.00219.77
7.4.290.0160.00519.78
7.4.280.0160.00519.73
7.4.270.0180.00519.76
7.4.260.0160.00417.59
7.4.250.0130.00718.68
7.4.240.0100.00818.10
7.4.230.0180.00518.68
7.4.220.0130.00418.22
7.4.210.0100.00817.87
7.4.200.0140.00418.68
7.4.190.0240.00419.76
7.4.180.0160.00619.80
7.4.160.0200.00419.75
7.4.150.0260.00219.76
7.4.140.0280.00419.63
7.4.130.0190.00718.65
7.4.120.0180.00418.72
7.4.110.0170.00618.63
7.4.100.0160.00618.70
7.4.90.0170.00418.63
7.4.80.0160.00619.64
7.4.70.0180.00718.63
7.4.60.0160.00918.72
7.4.50.0180.00418.69
7.4.40.0200.00518.64
7.4.30.0190.00319.73
7.4.20.0220.00619.71
7.4.10.0130.00818.53
7.4.00.0130.00817.70
7.3.330.0150.00618.42
7.3.320.0120.00717.41
7.3.310.0180.00318.55
7.3.300.0140.00718.56
7.3.290.0160.00518.50
7.3.280.0170.00718.46
7.3.270.0220.00719.61
7.3.260.0140.00717.23
7.3.250.0240.00219.55
7.3.240.0120.00817.50
7.3.230.0150.00618.52
7.3.220.0190.00519.55
7.3.210.0200.00418.52
7.3.200.0150.00618.54
7.3.190.0150.00718.55
7.3.180.0170.00718.47
7.3.170.0210.00218.62
7.3.160.0150.00618.64
7.3.150.0150.00619.57
7.3.140.0200.00519.64
7.3.130.0140.00718.59
7.3.120.0110.00718.51
7.3.110.0150.00518.45
7.3.100.0150.00318.54
7.3.90.0090.00817.65
7.3.80.0110.00817.62
7.3.70.0110.00517.62
7.3.60.0100.00817.62
7.3.50.0120.00617.67
7.3.40.0110.00517.59
7.3.30.0100.00617.61
7.3.20.0100.01018.52
7.3.10.0090.00918.59
7.3.00.0120.00718.49
7.2.340.0180.00519.70
7.2.330.0160.00518.65
7.2.320.0150.00618.73
7.2.310.0120.00818.60
7.2.300.0140.00918.68
7.2.290.0150.00718.67
7.2.280.0170.00719.57
7.2.270.0180.00919.60
7.2.260.0170.00618.75
7.2.250.0150.00818.64
7.2.240.0130.00818.61
7.2.230.0220.00418.67
7.2.220.0170.00617.74
7.2.210.0140.00717.75
7.2.200.0120.01017.76
7.2.190.0130.00817.72
7.2.180.0150.00617.82
7.2.170.0160.00617.66
7.2.160.0130.00817.67
7.2.150.0090.01318.68
7.2.140.0150.00518.74
7.2.130.0100.00918.77
7.2.120.0110.00918.66
7.2.110.0130.00718.68
7.2.100.0150.00518.68
7.2.90.0120.00718.78
7.2.80.0120.00718.76
7.2.70.0140.00718.73
7.2.60.0120.00718.77
7.2.50.0100.01018.59
7.2.40.0120.00918.72
7.2.30.0130.00718.77
7.2.20.0160.00418.71
7.2.10.0110.00918.75
7.2.00.0100.00718.81
7.1.330.0170.00219.29
7.1.320.0110.00717.83
7.1.310.0120.00817.92
7.1.300.0080.01117.78
7.1.290.0110.00817.86
7.1.280.0130.00717.91
7.1.270.0130.00717.88
7.1.260.0180.00417.92
7.1.250.0120.00617.71
7.1.240.0140.00619.04
7.1.230.0180.00419.00
7.1.220.0140.00419.17
7.1.210.0120.00619.16
7.1.200.0150.00419.20
7.1.190.0160.00419.16
7.1.180.0120.00719.13
7.1.170.0110.00919.11
7.1.160.0140.00519.17
7.1.150.0190.00219.12
7.1.140.0130.00619.13
7.1.130.0140.00519.15
7.1.120.0190.00419.20
7.1.110.0140.00619.15
7.1.100.0150.00419.06
7.1.90.0130.00619.16
7.1.80.0130.00619.18
7.1.70.0130.00719.01
7.1.60.0140.00719.19
7.1.50.0140.00619.20
7.1.40.0150.00819.16
7.1.30.0130.00619.18
7.1.20.0110.00719.12
7.1.10.0150.00419.09
7.1.00.0080.00619.07

preferences:
52.58 ms | 401 KiB | 5 Q