3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public $bar; public function __construct() { $this->bar = function() { return false; }; } public function bar() { return true; } } $Foo = new Foo; echo 'Foo->bar <br>'; var_dump($Foo->bar); echo 'Foo->bar() <br>'; var_dump($Foo->bar());

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.40.0040.01118.67
8.3.30.0100.00720.33
8.3.20.0050.00320.39
8.3.10.0080.00021.05
8.3.00.0000.00723.53
8.2.170.0080.00822.96
8.2.160.0110.00420.52
8.2.150.0090.00024.18
8.2.140.0040.00424.66
8.2.130.0050.00226.16
8.2.120.0040.00421.00
8.2.110.0070.00320.51
8.2.100.0120.00319.45
8.2.90.0080.00017.84
8.2.80.0080.00020.41
8.2.70.0040.00417.93
8.2.60.0090.00018.04
8.2.50.0040.00418.10
8.2.40.0040.00420.60
8.2.30.0000.00817.94
8.2.20.0040.00417.77
8.2.10.0000.00717.74
8.2.00.0050.00317.64
8.1.270.0080.00023.99
8.1.260.0040.00426.35
8.1.250.0060.00328.09
8.1.240.0090.00024.02
8.1.230.0040.00820.98
8.1.220.0030.00517.78
8.1.210.0050.00318.77
8.1.200.0040.00417.36
8.1.190.0040.00417.66
8.1.180.0050.00418.10
8.1.170.0030.00618.71
8.1.160.0070.00022.15
8.1.150.0030.00618.70
8.1.140.0040.00417.50
8.1.130.0070.00017.74
8.1.120.0080.00017.47
8.1.110.0050.00317.34
8.1.100.0030.00317.46
8.1.90.0070.00017.36
8.1.80.0000.00717.47
8.1.70.0030.00317.46
8.1.60.0040.00417.55
8.1.50.0040.00417.52
8.1.40.0050.00317.56
8.1.30.0000.00817.58
8.1.20.0000.00817.63
8.1.10.0070.00017.54
8.1.00.0030.00517.43
8.0.300.0050.00320.14
8.0.290.0040.00416.75
8.0.280.0020.00518.44
8.0.270.0030.00317.12
8.0.260.0000.00616.70
8.0.250.0030.00616.91
8.0.240.0080.00016.88
8.0.230.0040.00416.93
8.0.220.0000.00616.84
8.0.210.0060.00016.71
8.0.200.0030.00316.94
8.0.190.0040.00416.90
8.0.180.0030.00516.87
8.0.170.0070.00016.88
8.0.160.0040.00416.87
8.0.150.0000.00716.78
8.0.140.0040.00416.75
8.0.130.0000.00613.24
8.0.120.0000.00816.91
8.0.110.0040.00416.79
8.0.100.0040.00416.91
8.0.90.0040.00416.84
8.0.80.0030.01616.85
8.0.70.0000.00717.00
8.0.60.0000.00716.74
8.0.50.0000.00716.78
8.0.30.0120.00917.13
8.0.20.0140.00517.40
8.0.10.0040.00417.05
8.0.00.0140.01316.80
7.4.330.0000.00516.77
7.4.320.0030.00316.50
7.4.300.0070.00016.53
7.4.290.0030.00316.42
7.4.280.0070.00016.62
7.4.270.0000.00716.64
7.4.260.0000.00613.28
7.4.250.0040.00416.42
7.4.240.0070.00016.61
7.4.230.0030.00316.35
7.4.220.0060.01216.68
7.4.210.0050.00916.48
7.4.200.0040.00416.68
7.4.190.0040.00416.46
7.4.160.0060.01016.59
7.4.150.0030.01417.40
7.4.140.0140.00317.86
7.4.130.0100.01116.54
7.4.120.0110.00616.44
7.4.110.0030.01316.27
7.4.100.0090.00916.57
7.4.90.0060.01216.45
7.4.80.0030.01319.39
7.4.70.0030.01716.43
7.4.60.0130.00316.35
7.4.50.0000.00916.64
7.4.40.0000.01822.77
7.4.30.0080.01216.55
7.4.10.0030.01414.98
7.4.00.0070.00914.81
7.3.330.0000.00613.13
7.3.320.0000.00713.23
7.3.310.0070.00016.34
7.3.300.0070.00016.35
7.3.290.0030.01016.27
7.3.280.0060.01316.30
7.3.270.0030.01217.40
7.3.260.0100.00918.24
7.3.250.0070.01216.50
7.3.240.0150.00616.57
7.3.230.0090.00916.39
7.3.210.0120.00616.23
7.3.200.0130.01019.39
7.3.190.0130.00716.30
7.3.180.0070.01016.48
7.3.170.0120.00416.64
7.3.160.0100.01016.67
7.3.130.0030.01414.97
7.3.120.0060.01014.69
7.3.110.0070.00814.84
7.3.100.0050.01114.58
7.3.90.0080.00514.77
7.3.80.0060.00414.81
7.3.70.0060.00814.73
7.3.60.0030.01214.73
7.3.50.0080.00714.47
7.3.40.0050.00514.83
7.3.30.0070.00814.73
7.3.20.0060.00616.41
7.3.10.0070.01016.64
7.3.00.0060.00816.48
7.2.330.0110.00716.44
7.2.320.0150.00616.38
7.2.310.0060.01116.81
7.2.300.0160.00416.39
7.2.290.0030.01416.40
7.2.260.0030.01015.09
7.2.250.0100.00714.81
7.2.240.0050.01215.16
7.2.230.0050.01015.03
7.2.220.0060.00415.12
7.2.210.0080.00614.86
7.2.200.0070.00515.23
7.2.190.0050.01014.98
7.2.180.0040.00714.90
7.2.170.0040.00914.93
7.2.160.0000.01314.76
7.2.150.0040.00716.89
7.2.140.0120.00317.09
7.2.130.0080.00816.87
7.2.120.0130.00316.68
7.2.110.0070.01117.16
7.2.100.0030.01017.03
7.2.90.0000.01416.97
7.2.80.0060.00916.82
7.2.70.0030.01117.02
7.2.60.0030.00916.65
7.2.50.0030.01016.98
7.2.40.0040.01116.80
7.2.30.0060.01016.93
7.2.20.0040.01117.01
7.2.10.0140.00016.89
7.2.00.0010.01018.20
7.1.330.0070.00615.65
7.1.320.0050.00715.83
7.1.310.0030.00915.82
7.1.300.0070.00715.73
7.1.290.0050.01015.78
7.1.280.0080.00615.66
7.1.270.0090.00315.75
7.1.260.0100.00415.52
7.1.250.0000.01415.57
7.1.240.0040.01115.80
7.1.230.0000.00815.66
7.1.220.0060.00615.86
7.1.210.0090.00315.59
7.1.200.0090.00515.70
7.1.190.0040.00715.87
7.1.180.0040.01215.47
7.1.170.0060.00615.84
7.1.160.0040.00815.46
7.1.150.0090.00915.63
7.1.140.0070.00715.47
7.1.130.0070.00715.76
7.1.120.0070.00715.40
7.1.110.0000.01315.77
7.1.100.0080.00816.83
7.1.90.0000.00915.66
7.1.80.0040.01115.66
7.1.70.0090.01016.45
7.1.60.0070.01217.52
7.1.50.0080.00916.40
7.1.40.0090.00315.86
7.1.30.0000.01515.78
7.1.20.0060.00315.59
7.1.10.0060.00615.63
7.1.00.0070.02819.08
7.0.330.0120.00315.19
7.0.320.0060.00615.34
7.0.310.0060.00915.39
7.0.300.0070.00715.56
7.0.290.0000.01515.41
7.0.280.0000.01115.45
7.0.270.0060.00615.09
7.0.260.0060.00315.20
7.0.250.0110.00315.47
7.0.240.0090.00315.39
7.0.230.0080.00515.34
7.0.220.0000.01615.35
7.0.210.0070.00715.46
7.0.200.0020.00915.98
7.0.190.0040.00815.57
7.0.180.0080.00415.24
7.0.170.0070.00415.39
7.0.160.0000.01515.40
7.0.150.0060.00315.46
7.0.140.0030.04318.76
7.0.130.0100.00315.51
7.0.120.0030.01015.51
7.0.110.0050.04917.68
7.0.100.0090.04517.66
7.0.90.0110.04117.63
7.0.80.0080.04317.62
7.0.70.0070.04217.57
7.0.60.0070.03817.57
7.0.50.0100.03817.61
7.0.40.0070.04216.62
7.0.30.0190.03316.47
7.0.20.0070.04616.54
7.0.10.0120.02716.66
7.0.00.0080.04316.62
5.6.400.0000.01114.56
5.6.390.0000.01714.73
5.6.380.0100.00314.63
5.6.370.0030.01414.74
5.6.360.0090.00314.27
5.6.350.0100.01014.71
5.6.340.0080.00614.48
5.6.330.0060.00314.68
5.6.320.0070.00714.43
5.6.310.0000.01414.16
5.6.300.0100.00314.46
5.6.290.0080.00814.57
5.6.280.0080.03517.64
5.6.270.0030.01414.20
5.6.260.0050.04017.35
5.6.250.0070.04717.52
5.6.240.0030.04317.54
5.6.230.0100.04017.53
5.6.220.0070.04417.46
5.6.210.0020.04417.55
5.6.200.0020.05017.47
5.6.190.0050.04817.45
5.6.180.0090.03917.54
5.6.170.0090.04317.47
5.6.160.0070.04217.51
5.6.150.0070.04517.58
5.6.140.0070.03817.62
5.6.130.0090.04217.69
5.6.120.0030.05117.53
5.6.110.0050.04717.48
5.6.100.0050.04717.62
5.6.90.0080.03517.45
5.6.80.0100.04217.20
5.6.70.0050.04617.21
5.6.60.0080.04217.04
5.6.50.0050.04217.14
5.6.40.0080.02917.24
5.6.30.0020.02917.03
5.6.20.0110.04117.10
5.6.10.0110.03217.05
5.6.00.0100.03817.25
5.5.380.0100.03817.30
5.5.370.0090.04417.37
5.5.360.0070.04117.40
5.5.350.0060.03817.32
5.5.340.0080.04117.45
5.5.330.0080.04317.78
5.5.320.0070.04017.63
5.5.310.0070.04217.70
5.5.300.0080.04217.73
5.5.290.0070.04517.52
5.5.280.0090.04517.50
5.5.270.0070.04717.53
5.5.260.0050.05017.70
5.5.250.0090.04517.50
5.5.240.0120.03517.41
5.5.230.0060.04117.31
5.5.220.0080.04017.24
5.5.210.0080.04217.32
5.5.200.0090.04017.20
5.5.190.0050.04317.17
5.5.180.0140.03717.20
5.5.170.0060.00614.38
5.5.160.0100.04017.14
5.5.150.0030.04717.17
5.5.140.0070.04017.27
5.5.130.0070.04217.32
5.5.120.0120.03617.13
5.5.110.0090.02317.43
5.5.100.0040.04617.23
5.5.90.0110.03016.96
5.5.80.0080.04017.12
5.5.70.0050.02817.22
5.5.60.0020.04717.22
5.5.50.0100.04117.16
5.5.40.0140.03617.19
5.5.30.0070.04117.05
5.5.20.0120.03217.24
5.5.10.0050.03717.11
5.5.00.0080.04017.04
5.4.450.0080.04015.47
5.4.440.0100.03515.47
5.4.430.0050.04215.47
5.4.420.0110.03815.54
5.4.410.0080.03615.50
5.4.400.0080.04015.30
5.4.390.0030.04215.43
5.4.380.0050.04515.48
5.4.370.0020.02715.36
5.4.360.0030.04215.40
5.4.350.0070.04015.32
5.4.340.0020.04515.32
5.4.330.0000.00911.62
5.4.320.0060.04515.31
5.4.310.0070.03815.33
5.4.300.0090.04015.32
5.4.290.0050.04315.39
5.4.280.0070.03815.43
5.4.270.0030.04415.46
5.4.260.0070.04015.42
5.4.250.0040.04515.46
5.4.240.0080.04115.38
5.4.230.0080.03515.37
5.4.220.0040.03915.40
5.4.210.0040.04615.39
5.4.200.0120.02815.39
5.4.190.0030.04315.31
5.4.180.0050.04515.35
5.4.170.0030.04415.30
5.4.160.0050.04215.35
5.4.150.0050.04315.30
5.4.140.0070.03914.08
5.4.130.0090.03713.99
5.4.120.0100.03814.14
5.4.110.0030.03714.02
5.4.100.0030.03614.02
5.4.90.0080.03514.02
5.4.80.0170.03214.07
5.4.70.0140.03013.96
5.4.60.0050.04214.06
5.4.50.0030.04513.93
5.4.40.0080.03814.07
5.4.30.0110.03314.00
5.4.20.0060.04014.00
5.4.10.0050.04014.01
5.4.00.0100.03313.70
5.3.290.0060.03513.15
5.3.280.0060.04313.12
5.3.270.0050.04213.12
5.3.260.0020.04313.18
5.3.250.0060.03813.13
5.3.240.0070.04013.16
5.3.230.0060.04013.12
5.3.220.0060.03413.02
5.3.210.0130.03313.16
5.3.200.0040.02913.11
5.3.190.0020.03613.21
5.3.180.0070.03713.21
5.3.170.0090.03913.09
5.3.160.0100.03813.15
5.3.150.0100.03813.08
5.3.140.0070.04213.15
5.3.130.0080.03013.09
5.3.120.0020.04413.08
5.3.110.0080.03813.08
5.3.100.0030.04112.84
5.3.90.0050.04312.83
5.3.80.0060.03812.82
5.3.70.0030.03512.84
5.3.60.0040.04012.82
5.3.50.0080.03812.79
5.3.40.0050.03012.86
5.3.30.0080.03812.70
5.3.20.0070.01812.70
5.3.10.0060.03712.69
5.3.00.0020.03312.75
5.2.170.0030.06012.94
5.2.160.0100.05712.94
5.2.150.0030.06712.94
5.2.140.0030.05312.94
5.2.130.0100.05712.94
5.2.120.0030.05312.94
5.2.110.0070.06012.94
5.2.100.0070.06012.94
5.2.90.0100.05712.94
5.2.80.0030.06012.94
5.2.70.0070.06012.94
5.2.60.0100.05712.94
5.2.50.0030.06012.94
5.2.40.0030.06012.94
5.2.30.0070.05712.94
5.2.20.0100.05712.94
5.2.10.0030.06012.94
5.2.00.0070.05712.94
5.1.60.0070.05012.94
5.1.50.0070.05012.94
5.1.40.0070.05012.94
5.1.30.0000.06012.94
5.1.20.0070.05712.94
5.1.10.0100.05012.94
5.1.00.0100.05012.94
5.0.50.0030.02712.94
5.0.40.0030.04012.94
5.0.30.0070.06012.94
5.0.20.0000.04312.94
5.0.10.0000.04012.94
5.0.00.0070.06012.94
4.4.90.0030.03712.94
4.4.80.0130.02712.94
4.4.70.0000.04012.94
4.4.60.0130.02712.94
4.4.50.0030.03312.94
4.4.40.0030.05012.94
4.4.30.0070.03312.94
4.4.20.0100.02312.94
4.4.10.0030.03712.94
4.4.00.0070.04312.94
4.3.110.0030.03012.94
4.3.100.0100.02712.94
4.3.90.0070.03012.94
4.3.80.0070.05012.94
4.3.70.0030.03712.94
4.3.60.0030.02712.94
4.3.50.0030.03312.94
4.3.40.0030.04312.94
4.3.30.0000.02312.94
4.3.20.0030.03712.94
4.3.10.0030.03312.94
4.3.00.0000.03012.94

preferences:
48.98 ms | 400 KiB | 5 Q