3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { static public $static_property; public $instance_property; public function instance_method() { echo $this->instance_property; } public static function static_method() { echo self::$static_property; } } Foo::$static_property = "static foo!<br>\n"; echo Foo::static_method(); $foo = new Foo(); $foo->instance_property = "instance property!<br>\n"; echo $foo->instance_method();

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.0150.00018.30
8.3.50.0110.00821.98
8.3.40.0070.00718.79
8.3.30.0060.00918.71
8.3.20.0000.00818.61
8.3.10.0040.00421.10
8.3.00.0060.00821.81
8.2.180.0150.00016.32
8.2.170.0150.00622.96
8.2.160.0030.01020.27
8.2.150.0140.00024.18
8.2.140.0040.00424.66
8.2.130.0000.00726.16
8.2.120.0060.00920.95
8.2.110.0090.00020.97
8.2.100.0080.00417.78
8.2.90.0080.00019.22
8.2.80.0040.00417.97
8.2.70.0050.00517.63
8.2.60.0000.00817.93
8.2.50.0040.00418.07
8.2.40.0050.00318.16
8.2.30.0030.00619.41
8.2.20.0000.00717.57
8.2.10.0070.00017.69
8.2.00.0080.00417.50
8.1.280.0110.00425.92
8.1.270.0040.00423.99
8.1.260.0120.00626.35
8.1.250.0060.00328.09
8.1.240.0040.00422.20
8.1.230.0030.00718.87
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0000.01017.13
8.1.190.0000.00817.10
8.1.180.0030.00618.10
8.1.170.0090.00018.50
8.1.160.0040.00418.83
8.1.150.0080.00018.45
8.1.140.0040.00417.50
8.1.130.0000.00717.83
8.1.120.0030.00317.32
8.1.110.0040.00417.28
8.1.100.0030.00417.38
8.1.90.0000.00717.39
8.1.80.0070.00017.31
8.1.70.0030.00317.36
8.1.60.0050.00317.61
8.1.50.0000.00817.38
8.1.40.0040.00417.46
8.1.30.0080.00017.65
8.1.20.0040.00417.52
8.1.10.0000.00717.57
8.1.00.0060.00317.44
8.0.300.0060.00318.77
8.0.290.0000.00716.75
8.0.280.0060.00318.51
8.0.270.0090.00017.25
8.0.260.0000.00816.69
8.0.250.0040.00416.95
8.0.240.0060.00316.97
8.0.230.0030.00316.89
8.0.220.0030.00316.83
8.0.210.0000.00716.81
8.0.200.0060.00016.91
8.0.190.0040.00416.94
8.0.180.0040.00416.84
8.0.170.0070.00016.86
8.0.160.0030.00316.79
8.0.150.0040.00416.74
8.0.140.0030.00516.76
8.0.130.0000.00513.32
8.0.120.0020.00516.85
8.0.110.0050.00316.86
8.0.100.0040.00416.79
8.0.90.0000.00716.63
8.0.80.0110.00416.85
8.0.70.0040.00416.85
8.0.60.0050.00316.89
8.0.50.0000.00816.81
8.0.30.0100.00817.17
8.0.20.0050.01317.40
8.0.10.0050.00216.97
8.0.00.0100.00716.79
7.4.330.0050.00016.73
7.4.320.0030.00316.59
7.4.300.0000.00616.61
7.4.290.0080.00016.50
7.4.280.0030.00316.45
7.4.270.0060.00016.62
7.4.260.0050.00013.25
7.4.250.0000.00716.38
7.4.240.0030.00316.40
7.4.230.0000.00616.34
7.4.220.0180.00316.40
7.4.210.0050.01216.60
7.4.200.0040.00416.65
7.4.190.0070.00016.69
7.4.160.0100.00616.34
7.4.150.0110.00617.40
7.4.140.0150.01417.86
7.4.130.0120.00816.58
7.4.120.0100.00716.46
7.4.110.0090.00616.71
7.4.100.0030.01316.57
7.4.90.0090.00916.46
7.4.80.0110.00819.39
7.4.70.0070.01016.58
7.4.60.0090.01116.31
7.4.50.0030.00316.61
7.4.40.0040.01122.77
7.4.30.0070.01716.25
7.4.00.0030.01415.13
7.3.330.0020.00213.23
7.3.320.0030.00213.12
7.3.310.0030.00316.23
7.3.300.0000.00716.19
7.3.290.0140.00016.24
7.3.280.0060.01116.31
7.3.270.0100.00717.40
7.3.260.0090.00818.24
7.3.250.0130.00516.38
7.3.240.0080.00916.57
7.3.230.0100.00716.39
7.3.210.0170.00016.53
7.3.200.0110.00919.39
7.3.190.0060.01416.26
7.3.180.0120.00316.59
7.3.170.0150.00016.53
7.3.160.0090.00616.44
7.3.120.0030.01314.96
7.3.10.0060.00616.31
7.3.00.0100.00716.56
7.2.330.0130.00316.51
7.2.320.0160.00616.53
7.2.310.0030.01416.68
7.2.300.0110.00816.81
7.2.290.0000.01716.75
7.2.130.0070.00716.85
7.2.120.0060.00816.69
7.2.110.0070.00616.88
7.2.100.0060.00616.67
7.2.90.0070.00916.98
7.2.80.0100.00516.78
7.2.70.0090.00516.94
7.2.60.0100.00716.92
7.2.50.0100.00517.06
7.2.40.0050.00716.92
7.2.30.0080.00816.83
7.2.20.0080.00717.04
7.2.10.0090.00116.96
7.2.00.0040.01117.71
7.1.250.0040.00415.80
7.1.240.0070.00715.68
7.1.230.0040.00415.72
7.1.220.0090.00315.55
7.1.210.0090.00015.59
7.1.200.0040.01115.85
7.1.190.0060.00615.79
7.1.180.0030.01015.64
7.1.170.0030.00515.69
7.1.160.0070.00715.59
7.1.150.0120.00315.45
7.1.140.0070.00715.76
7.1.130.0030.01015.72
7.1.120.0060.00615.70
7.1.110.0060.00615.79
7.1.100.0050.00816.86
7.1.90.0000.01315.79
7.1.80.0090.00615.83
7.1.70.0050.00516.24
7.1.60.0050.00917.43
7.1.50.0060.00616.39
7.1.40.0000.01115.67
7.1.30.0040.01115.65
7.1.20.0030.01015.64
7.1.10.0100.00315.82
7.1.00.0080.04219.00
7.0.320.0000.00915.35
7.0.310.0000.00815.57
7.0.300.0060.00615.41
7.0.290.0040.00815.23
7.0.280.0030.01015.11
7.0.270.0100.00315.43
7.0.260.0000.01415.15
7.0.250.0120.00015.46
7.0.240.0040.00415.20
7.0.230.0040.00715.52
7.0.220.0090.00315.30
7.0.210.0070.00715.11
7.0.200.0040.00416.03
7.0.190.0000.01115.19
7.0.180.0030.00315.50
7.0.170.0060.00315.34
7.0.160.0070.00715.44
7.0.150.0030.00915.30
7.0.140.0020.04218.80
7.0.130.0030.01015.34
7.0.120.0040.00815.47
7.0.110.0060.03117.67
7.0.100.0070.03517.67
7.0.90.0100.03717.80
7.0.80.0050.04317.61
7.0.70.0060.04017.60
7.0.60.0120.03517.73
7.0.50.0100.01817.94
7.0.40.0090.02016.79
7.0.30.0130.01716.79
7.0.20.0090.02016.66
7.0.10.0050.02416.79
7.0.00.0050.02316.88
5.6.380.0000.01414.69
5.6.370.0060.00314.14
5.6.360.0000.01214.74
5.6.350.0000.01314.78
5.6.340.0080.00414.43
5.6.330.0000.01114.57
5.6.320.0070.00714.40
5.6.310.0000.01114.37
5.6.300.0080.00414.25
5.6.290.0040.00414.17
5.6.280.0040.03817.75
5.6.270.0000.01114.34
5.6.260.0120.02317.65
5.6.250.0090.04217.48
5.6.240.0110.03917.59
5.6.230.0080.03817.59
5.6.220.0090.03717.61
5.6.210.0100.03717.50
5.6.200.0080.03417.75
5.6.190.0080.02517.66
5.6.180.0030.02617.60
5.6.170.0080.02317.82
5.6.160.0090.02017.95
5.6.150.0050.02717.71
5.6.140.0030.02317.70
5.6.130.0050.02317.88
5.6.120.0020.03517.79
5.6.110.0080.03617.72
5.6.100.0060.03817.58
5.6.90.0020.04317.81
5.6.80.0040.02417.36
5.6.70.0050.02317.29
5.6.60.0000.03117.30
5.6.50.0100.02217.48
5.6.40.0050.02617.32
5.6.30.0070.02317.36
5.6.20.0060.02317.27
5.6.10.0110.01717.25
5.6.00.0080.02017.27
5.5.380.0090.04015.74
5.5.370.0050.04515.94
5.5.360.0050.03215.82
5.5.350.0110.04315.91
5.5.340.0020.02716.00
5.5.330.0050.02416.10
5.5.320.0110.03016.03
5.5.310.0040.02716.12
5.5.300.0030.02315.94
5.5.290.0050.02216.06
5.5.280.0010.02516.23
5.5.270.0050.02016.12
5.5.260.0070.04215.92
5.5.250.0060.02115.93
5.5.240.0000.03915.79
5.5.230.0070.02015.65
5.5.220.0060.02115.66
5.5.210.0080.02015.60
5.5.200.0020.02815.58
5.5.190.0030.02315.80
5.5.180.0030.02515.87
5.5.170.0030.00714.38
5.5.160.0030.02415.67
5.5.150.0040.02415.72
5.5.140.0030.02015.59
5.5.130.0070.03515.70
5.5.120.0050.02315.67
5.5.110.0070.02015.65
5.5.100.0030.02315.65
5.5.90.0100.03215.51
5.5.80.0020.03115.61
5.5.70.0030.04615.69
5.5.60.0100.03715.64
5.5.50.0080.03715.73
5.5.40.0050.03915.62
5.5.30.0090.03715.53
5.5.20.0090.03815.54
5.5.10.0030.02315.61
5.5.00.0050.03715.65
5.4.450.0020.02215.31
5.4.440.0070.03015.17
5.4.430.0040.02315.40
5.4.420.0080.03615.28
5.4.410.0030.02615.32
5.4.400.0030.03315.05
5.4.390.0020.02215.16
5.4.380.0030.02515.15
5.4.370.0020.02515.09
5.4.360.0070.01815.15
5.4.350.0000.02415.26
5.4.340.0050.02615.16
5.4.330.0040.00711.06
5.4.320.0030.02014.99
5.4.310.0000.02715.17
5.4.300.0040.02115.23
5.4.290.0070.02214.99
5.4.280.0060.02115.06
5.4.270.0020.02215.04
5.4.260.0050.02014.97
5.4.250.0050.02115.07
5.4.240.0060.02415.14
5.4.230.0060.03115.11
5.4.220.0030.02214.97
5.4.210.0120.03315.09
5.4.200.0020.04115.19
5.4.190.0050.03715.20
5.4.180.0050.03815.10
5.4.170.0050.03815.13
5.4.160.0080.04014.95
5.4.150.0050.04015.04
5.4.140.0050.04013.88
5.4.130.0050.03813.71
5.4.120.0030.04313.82
5.4.110.0070.03013.76
5.4.100.0050.03713.91
5.4.90.0090.02513.78
5.4.80.0120.03013.80
5.4.70.0100.03613.69
5.4.60.0070.03913.69
5.4.50.0060.03613.78
5.4.40.0060.03513.79
5.4.30.0060.03613.85
5.4.20.0050.03513.73
5.4.10.0070.03713.78
5.4.00.0040.02413.57
5.3.290.0070.01812.60
5.3.280.0060.02012.58
5.3.270.0060.04312.54
5.3.260.0050.03012.65
5.3.250.0000.04512.74
5.3.240.0030.03912.69
5.3.230.0050.04312.61
5.3.220.0050.04012.50
5.3.210.0090.03812.50
5.3.200.0050.04012.49
5.3.190.0110.03212.61
5.3.180.0050.04012.70
5.3.170.0000.03212.60
5.3.160.0050.04012.50
5.3.150.0030.04412.60
5.3.140.0050.03812.57
5.3.130.0070.04112.60
5.3.120.0070.04112.56
5.3.110.0050.04112.43
5.3.100.0060.03212.34
5.3.90.0020.02712.42
5.3.80.0040.02212.16
5.3.70.0070.02312.35
5.3.60.0110.03312.25
5.3.50.0090.02012.20
5.3.40.0050.03612.23
5.3.30.0040.02112.27
5.3.20.0130.02012.09
5.3.10.0100.02812.14
5.3.00.0070.03312.07
5.2.170.0020.01910.85
5.2.160.0030.01810.85
5.2.150.0040.02710.85
5.2.140.0040.03010.85
5.2.130.0050.02710.85
5.2.120.0030.02810.85
5.2.110.0020.02910.85
5.2.100.0050.02010.85
5.2.90.0020.03610.85
5.2.80.0050.03310.85
5.2.70.0090.02510.85
5.2.60.0060.03310.85
5.2.50.0030.03010.85
5.2.40.0020.03310.85
5.2.30.0010.03610.85
5.2.20.0020.03510.85
5.2.10.0050.02710.85
5.2.00.0020.03510.85
5.1.60.0060.01810.85
5.1.50.0030.02610.85
5.1.40.0050.01810.85
5.1.30.0060.02510.85
5.1.20.0020.01910.85
5.1.10.0070.02710.85
5.1.00.0050.01710.85
5.0.50.0050.02210.85
5.0.40.0030.02310.85
5.0.30.0070.03010.85
5.0.20.0030.01710.85
5.0.10.0030.02310.85
5.0.00.0100.02510.85
4.4.90.0020.01810.85
4.4.80.0020.02010.85
4.4.70.0000.01310.85
4.4.60.0030.01010.85
4.4.50.0020.02110.85
4.4.40.0020.02810.85
4.4.30.0030.01410.85
4.4.20.0020.01810.85
4.4.10.0030.01810.85
4.4.00.0060.02510.85
4.3.110.0000.02010.85
4.3.100.0050.01710.85
4.3.90.0020.01810.85
4.3.80.0030.02710.85
4.3.70.0070.01310.85
4.3.60.0030.01810.85
4.3.50.0020.02110.85
4.3.40.0030.02610.85
4.3.30.0030.01110.85
4.3.20.0020.01810.85
4.3.10.0030.01810.85
4.3.00.0010.01510.85

preferences:
31.86 ms | 401 KiB | 5 Q